Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Additional ideas and examples #19

Open
spiralofhope opened this issue Jul 26, 2020 · 0 comments
Open

Additional ideas and examples #19

spiralofhope opened this issue Jul 26, 2020 · 0 comments

Comments

@spiralofhope
Copy link

spiralofhope commented Jul 26, 2020

Thanks for your work. Since discovering it, I always refer to this project when I'm working on new script ideas.

I myself have kept notes and have created a number of examples.

https://github.com/spiralofhope/shell-random/tree/master/live/sh

Although we have very different styles (for code and examples), some of my stuff might be useful for your work. From now on I'll try to refine my examples and provide them for your consideration, but there may be old stuff you'd be interested in absorbing into this project, including some oddities.

For example:

https://github.com/spiralofhope/shell-random/blob/master/live/sh/scripts/examples/comments.sh

# A whole HEREDOC block which can be trivially commented in or out to enable/disable the block.
# Also code foldable.
:<<'}'
{
  \echo  'This would not be run.'
}

# Notice the commenting of the following line.
#:<<'}'
{
  \echo  'This WOULD be run.'
}
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant