Can a Bash shell option be set for a single command? - Ask Ubuntu
i way variable can set single command, such as:
lang=fr_fr.utf8 df -h
is possible use shopt -s
command, or other method, set shell option, such nullglob or extglob, single command in same manner?
depending on use case, use subshell:
(shopt -s nullglob; foo)
Comments
Post a Comment