zsh-workers
 help / color / mirror / code / Atom feed
* Re: zlogout not finishing when errors
       [not found] <i2q9pr3cuozm.dlg@thorstenkampe.de>
@ 2004-03-23 19:16 ` Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 2004-03-23 19:16 UTC (permalink / raw)
  To: Thorsten Kampe, Zsh hackers list

Thorsten Kampe wrote:
> [zsh 4.1.1]
> 
> If have put some "cp" commands in my .zlogout. Some files are
> sometimes "nonexistant" - depending on the host and the mounts. So I
> simply wanted to redirect stderr to /dev/null.
> 
> To my surprise when of these commands errors ("cp nonexistant_file
> destination") the rest of .zlogout is not read. So I had to put a "if
> [[ -r $file ]]" into .zlogout to make this file finish until the end.

I can't reproduce this (with 4.2.0).

  % cat ~/.zlogout  
  cp nonexistent foo
  print This line has been executed.
  % zsh -l        
  % exit
  cp: cannot stat `nonexistent': No such file or directory
  This line has been executed.

Are you sure there isn't a `setopt errexit' lurking somewhere?

pws


**********************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.

www.mimesweeper.com
**********************************************************************


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-03-23 19:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <i2q9pr3cuozm.dlg@thorstenkampe.de>
2004-03-23 19:16 ` zlogout not finishing when errors Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).