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

debian - Kali Linux - Debootstrap error Failed to determine codename for the release - Super User

crash - Windows Rundll32 (child process of DllHost) is crashing. How can I even identify it? - Super User

Windows XP installation, no previous version of Windows NT - Super User