Skip to content

Instantly share code, notes, and snippets.

@zenoamaro
Last active September 5, 2020 09:40
Show Gist options
  • Save zenoamaro/73b5d31076b58bf5c22a to your computer and use it in GitHub Desktop.
Save zenoamaro/73b5d31076b58bf5c22a to your computer and use it in GitHub Desktop.
Sample scripts for testing qsh
#!/usr/bin/env sh
echo "Arguments are:"
for arg in "$@"; do
echo "- $arg"
done
#!/usr/bin/env sh
echo "This script does nothing else."
#!/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