We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ba6da3 commit 2f54072Copy full SHA for 2f54072
examples/catch-all-stdin/src/root_command.sh
@@ -1,11 +1,8 @@
1
inspect_args
2
3
-# Collect the catch_all
4
-files=( ${other_args[*]} )
5
-
6
# Read contents of the provided file(s)
7
content=""
8
-for file in "${files[@]}"; do
+for file in "${other_args[@]}"; do
9
content+="$(cat "$file")"
10
content+=$'\n'
11
done
0 commit comments