X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
Message-ID: <48AE9EB9.2090908@cwilson.fastmail.fm>
Date: Fri, 22 Aug 2008 07:10:49 -0400
From: Charles Wilson <cygwin@cwilson.fastmail.fm>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.16) Gecko/20080708 Thunderbird/2.0.0.16 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: csih-0.1.7-1
References: <announce.48A789B6.3010103@cwilson.fastmail.fm> <48A78C6F.2050403@cwilson.fastmail.fm> <20080820134209.GN29104@calimero.vinschen.de> <48ADA260.3020901@cwilson.fastmail.fm> <20080821173028.GA24882@calimero.vinschen.de> <48AE2E66.8060704@cwilson.fastmail.fm> <20080822083438.GQ29104@calimero.vinschen.de>
In-Reply-To: <20080822083438.GQ29104@calimero.vinschen.de>
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

Corinna Vinschen wrote:

> See Eric's comments.  Especially the $var -eg "foo" is probably not
> a good idea.

OK...I'm sure I /did/ try it that way, but got an error of some kind
(related to fun_call, not the -eq test). But I'll try it again. Maybe I
fat-fingered something the first time.

BTW, "foo" is really %ADMINSGUID (that is, "544") so numerical
comparison is correct. If $var contains something other than a
(positive) number, that's an error anyway. If $var starts with a shell
meta-character, that's an error too.  And anyway, $var is not actually a
$var, but the output of a command pipeline.

So, $(compute gid of file) -eq $ADMINSGUID is actually correct.

--
Chuck

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

