This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [ANNOUNCEMENT] Updated: csih-0.1.7-1


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]