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

Re: [wip patch] new zsh/attr module



2009/3/3 Peter Stephenson <pws@xxxxxxx>:
> 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.

Uh, right. I must have left my head somewhere else :).


-- 
Mikael Magnusson



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