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

nvidia - NV18 [GeForce4 MX 4000] driver - Ask Ubuntu

drivers - No wi-fi network after install - Ask Ubuntu