Questions tagged [bashism]

This tag is for questions about scripts which should be written for the POSIX compliant command shell or for asking whether certain functionality is supported only in Bash command shell (i.e. not usable for POSIX compliant command shell, e.g. dash or busybox sh).

Bashism

Bashism is a feature not defined by POSIX. Therefore it is supported only in Bash command shell, i.e. not usable for POSIX compliant command shell, e.g. dash or busybox sh or general /bin/sh.

Links

1 questions
3
votes
1 answer

linux shell: for arg; do

Reading LTP shell code it uses strange for loop syntax: for arg; do TCID="${TCID}_$arg" done How does it takes arguments? I'd expect it loops over $arg, separating with $IFS, but when trying $ arg="aa bb"; for arg; do echo $arg; done and it…
pevik
  • 4,523
  • 3
  • 33
  • 44