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

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User