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 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: <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> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 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/