Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [wip patch] new zsh/attr module
- X-seq: zsh-workers 26674
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: [wip patch] new zsh/attr module
- Date: Tue, 3 Mar 2009 18:00:01 +0100
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=iYfSZmJoawQOJSmBXO2GYQvZJKyPWtxlOqK7qm6W4OQ=; b=rrK6gI6XzFHNTojLrElK8qJUsxHOfgrDpUlfmargwl6wc7KFDo0ECIzEVdacDUxYcQ 97Hz+je+dUaqL/yYQgg30+NDhG63L5c/QTXDaxIdTrjTgxlvpsw+Pju2w4KLwzm6onFc EMxQADZ0MK89o3ITBc15t6zjLAN94pibOyFM4=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=ceNs7G2g/2W6tNs+t/W6u1uE80onL/mJuxlaAMEjgSf8/yrAzt67PIN9XhFg9fjb/w TZHNRFNpS0LIQWWk6/Ye5keN96WXexMW2vWQnR2ZHFwUTwub2/EFPKlisiZq/+c8gE6L L9mA0uc2XN/wZbxxDdA1U8mNRO2OazvUe5qAI=
- In-reply-to: <200903031655.n23Gt97v023747@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <alpine.LNX.2.00.0902262245590.27571@localhost> <20090303121253.61f5e2ec@news01> <alpine.LNX.2.00.0903031455360.10365@localhost> <20090303163526.533995be@news01> <237967ef0903030851gc26620ficfc908628a4b3be2@xxxxxxxxxxxxxx> <200903031655.n23Gt97v023747@xxxxxxxxxxxxxx>
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