projects
/
BK-2020-03.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
chore(prvt):Update submodule
[BK-2020-03.git]
/
unitproc
/
bkt-read_stdin_psarg
diff --git
a/unitproc/bkt-read_stdin_psarg
b/unitproc/bkt-read_stdin_psarg
index d29e89ac0e743340f48bc0749c8e9594618e535a..aad29270ab7988d7e7047e06c31db777d7f89ad7 100644
(file)
--- a/
unitproc/bkt-read_stdin_psarg
+++ b/
unitproc/bkt-read_stdin_psarg
@@
-11,20
+11,18
@@
read_stdin_psarg() {
# Output: stdout (newline delimited)
# Example: read_stdin_psarg "$@"
# Depends: GNU bash (version 5.1.16)
# Output: stdout (newline delimited)
# Example: read_stdin_psarg "$@"
# Depends: GNU bash (version 5.1.16)
- # Version: 0.0.
1
+ # Version: 0.0.
3
local input_stdin input_psarg output;
# Store stdin
if [[ -p /dev/stdin ]]; then
input_stdin="$(cat -)";
fi;
local input_stdin input_psarg output;
# Store stdin
if [[ -p /dev/stdin ]]; then
input_stdin="$(cat -)";
fi;
- yell "DEBUG:$(declare -p input_stdin)";
# Store arguments
if [[ $# -gt 0 ]]; then
# Store arguments
if [[ $# -gt 0 ]]; then
- input_psarg="$
@
";
+ input_psarg="$
*
";
fi;
fi;
- yell "DEBUG:$(declare -p input_psarg)";
# Combine as output array elements
## Read in stdin
# Combine as output array elements
## Read in stdin
@@
-39,7
+37,6
@@
read_stdin_psarg() {
output+=("$arg");
done;
fi;
output+=("$arg");
done;
fi;
- yell "DEBUG:$(declare -p output)";
# Print to stdout
printf "%s\n" "${output[@]}";
# Print to stdout
printf "%s\n" "${output[@]}";