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

Re: trap problem



Thomas Ziehmer wrote:
> Hallo, 
> with zsh 3.1.5 (the only tested version) on SGI and HP, but not on Linux, AIX
>  
> and Solaris (there it works correct), the following script produces a wrong
> output:
>
> [script omitted]
>
> The output of the second ps-command is not shown.
> Why?

Yes, I get this too on IRIX 6.2.  However, changing the arguments to the
second ps (adding e.g -u $USER or -e) does produce output.  So I think the
problem is that ps is getting confused somehow by the process group, and
simply not finding any processes to report.  Whether this is a bug due to
zsh setting up the process wrong, or simply ps's own confusion, is rather
hard to tell.

-- 
Peter Stephenson <pws@xxxxxxxxxxxxxxxxx>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy



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