Op 31-08-17 om 16:43 schreef Nellis, Kenneth:
> At the keyboard, it is inconvenient to type (e.g.):
> shopt -s dotglob; mycmd; shopt -u dotglob
Try with a subshell. All it takes is a couple of parentheses.
(shopt -s dotglob; mycmd)
> But, I wonder if shopt might not itself accept a command to e
Frequently, when I invoke a command and use globbing to specify a list
of files, I want a temporary change in globbing options
(e.g. shopt -s dotglob) to be in effect for the one-time command.
At the keyboard, it is inconvenient to type (e.g.):
shopt -s dotglob; mycmd; shopt -u dotglob
I could