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

Re: zmv exits from function




On 2023-12-30 12:38, Bart Schaefer wrote:
Just run the zmv in a subshell:

  ( zmv '(*).SNT' '$1.eml' )
  ( zmv '(*).MES' '$1.eml' )

Perfect :-)
Arguably zmv could use null_glob.  Thoughts from -workers?

That's that option that makes everything grind to a halt if nothing if found?  Think I recall that " (N) " setting to cope with it?  From a users point of view it just makes trouble where no trouble really exists.  BTW, I did look at the source and noticed no return values, I had thought that something like ' zmv ... && echo "Success" || echo "Nope"' ... might catch it.




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