X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Date: Tue, 10 Nov 2009 21:01:11 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: getfacl returns 0 if no file found Message-ID: <20091110200111.GH26238@calimero.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <26287360 DOT post AT talk DOT nabble DOT com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <26287360.post@talk.nabble.com> User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On Nov 10 10:07, aputerguy wrote: > > This is inconsistent with Linux treatment - is that what we want? > Because it would be good to be able to trap this as an error. > > $ getfacl sfdsfdsfdsf > getfacl: sfdsfdsfdsf: No such file or directory > $ echo $? > 0 (cygwin) > 1 (linux) 2 (solaris). Since getfacl is based on the Solaris tool, I'll implement that return code. 1 is returned for usage errors. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Project Co-Leader cygwin AT cygwin DOT com Red Hat -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple