Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zmv exits from function
- X-seq: zsh-users 29388
- From: Ray Andrews <rayandrews@xxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: zmv exits from function
- Date: Sat, 30 Dec 2023 13:02:02 -0800
- Archived-at: <https://zsh.org/users/29388>
- In-reply-to:  <CAH+w=7YUYK+2wg+r4yuxieBY6D4epwvi3sPYrs6tcWJk6GwKbw@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <69024621-9e60-474f-9c32-4edaecc3ff68@eastlink.ca> <CAH+w=7YUYK+2wg+r4yuxieBY6D4epwvi3sPYrs6tcWJk6GwKbw@mail.gmail.com>
  
  
    
    
    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