Mercurial > repo
annotate bin/shebang_args_or_input @ 8690:929553b45bd6
<wob_jonas> slashlearn napkin/A complement of small lemon-soaked paper napkins is essential for the comfort, refreshment, and hygiene of the passengers during the journey.
author | HackBot |
---|---|
date | Mon, 04 Jul 2016 19:37:06 +0000 |
parents | ebcf284eeb4f |
children | b09f2c5c49dd |
rev | line source |
---|---|
8682
62de6fa2c08b
<oerjan> fetch http://oerjan.nvg.org/shebang_args_or_input
HackBot
parents:
diff
changeset
|
1 #!/bin/bash |
62de6fa2c08b
<oerjan> fetch http://oerjan.nvg.org/shebang_args_or_input
HackBot
parents:
diff
changeset
|
2 interp="$1"; script="$2"; shift 2; if [ "$#" -gt 0 ]; then printf '%s\n' "$*"; else cat; fi | "$interp" "$script" |