Last active
September 5, 2020 09:40
-
-
Save zenoamaro/73b5d31076b58bf5c22a to your computer and use it in GitHub Desktop.
Sample scripts for testing qsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
echo "Arguments are:" | |
for arg in "$@"; do | |
echo "- $arg" | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
echo "This script does nothing else." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env sh | |
echo "STDIN contains:" | |
while read -r content; do | |
echo "- $content" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment