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

software installation - How to install linux driver for a lb-link wireless usb adapter - Ask Ubuntu

permissions - Mount is denied because the NTFS volume is already exclusively opened - Ask Ubuntu