Hi,
when comparing strange behaviors of different shell implementations Tomas Janousek found this bug When using BASH as sh shell... $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 Jun 13 16:25 /bin/sh -> bash ...internal shell command `set' propagates environment variable to the process its running: $ /bin/sh sh-4.4$ VARIABLE=value set -o noglob sh-4.4$ env | grep VARIABLE VARIABLE=value sh-4.4$ The problem doesn't occur if BASH is not running in POSIX mode $ /bin/bash bash-4.4$ VARIABLE=value set -o noglob bash-4.4$ env | grep VARIABLE bash-4.4$ This seems to be inconsistent with other shells but mainly it looks wrong. Best regards, S_W
signature.asc
Description: Digital signature