4 ms·
> this provides the same functionality as the c program in TFA, without needing gcc. or just using bash: function showargs() { for x in "$@"; do echo "arg: $x
by rezonant 7y ago
> this provides the same functionality as the c program in TFA, without needing gcc.
or just using bash:
function showargs() { for x in "$@"; do echo "arg: $x"; done }
- mkl 7y agoI like it. I'm using a numbered version: function showargs() { i=1; for x in "$@"; do echo "arg $((i++)): $x"; done }