Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: setopt temporarily?



On 2014-02-20 at 13:06 -0800, Dave Yost wrote:
> It would be nice to be able similarly to temporarily set an option.
> 
> Perhaps setopt could terminate its arg parsing with a - or -- like this:
> 
>     setopt pushdSilent - pushd Desktop
> 
> Or maybe there needs to be a more general syntax for changing anything in zsh only for the following command.

Anonymous function.

(){ setopt localoptions xtrace; ls }

-Phil



Messages sorted by: Reverse Date, Date, Thread, Author