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

Re: [wip patch] new zsh/attr module



Mikael Magnusson wrote:
> > don't report errors unless system calls returned a negative value
> 
> I know the codestyle is a bit questionable but I already check 0 < len
> in the first if, so the else will be all negative lengths already.

... or zero, which was the problem.  It was printing an error message
with errno 0 if the list returned empty.  It now does the standard
Unix-style thing of printing nothing but returning status zero.

-- 
Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



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