delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2008/08/22/07:11:41

X-Recipient: archive-cygwin AT delorie DOT 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 AT cwilson DOT fastmail DOT 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 AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: csih-0.1.7-1
References: <announce DOT 48A789B6 DOT 3010103 AT cwilson DOT fastmail DOT fm> <48A78C6F DOT 2050403 AT cwilson DOT fastmail DOT fm> <20080820134209 DOT GN29104 AT calimero DOT vinschen DOT de> <48ADA260 DOT 3020901 AT cwilson DOT fastmail DOT fm> <20080821173028 DOT GA24882 AT calimero DOT vinschen DOT de> <48AE2E66 DOT 8060704 AT cwilson DOT fastmail DOT fm> <20080822083438 DOT GQ29104 AT calimero DOT vinschen DOT de>
In-Reply-To: <20080822083438.GQ29104@calimero.vinschen.de>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019