Re: Bug with tcsh? : if evaluating true instead of false

2006-10-26 Thread Juha Saarinen
On 10/27/06, Damian Wiest <[EMAIL PROTECTED]> wrote: I inherited an older edition of "UNIX Shell by Example" and agree it's a good book. I'd also recommend O'Reilly's "Classic Shell Scripting" (http://www.oreilly.com/catalog/shellsrptg/). I probably shouldn't encourage this sort of thing, but y

Re: Bug with tcsh? : if evaluating true instead of false

2006-10-26 Thread Damian Wiest
On Thu, Oct 26, 2006 at 02:36:06PM -0400, David Robillard wrote: > >I appreciate the help thanks! > > Sure, I'll send the script to you in an individual email instead of as > an attachement to the list. Should anyone on the list want a copy, > just drop me an email. > > >I'd appreciate the script

Re: Bug with tcsh? : if evaluating true instead of false

2006-10-26 Thread David Robillard
I appreciate the help thanks! Sure, I'll send the script to you in an individual email instead of as an attachement to the list. Should anyone on the list want a copy, just drop me an email. I'd appreciate the script though, definitely, as any resource I have to learn all Unix script language

Re: Bug with tcsh? : if evaluating true instead of false

2006-10-25 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Robillard wrote: >> Ok, so I tried to make a simple script to add users so I wouldn't have >> to type in groups/pw over and over again... the problem is that it's not >> behaving like it should =o. > > [ ...8<... Removed a bunch of lines ...8<..

Re: Bug with tcsh? : if evaluating true instead of false

2006-10-25 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David Robillard wrote: >> Ok, so I tried to make a simple script to add users so I wouldn't have >> to type in groups/pw over and over again... the problem is that it's not >> behaving like it should =o. > > [ ...8<... Removed a bunch of lines ...8<..

Re: Bug with tcsh? : if evaluating true instead of false

2006-10-25 Thread David Robillard
Ok, so I tried to make a simple script to add users so I wouldn't have to type in groups/pw over and over again... the problem is that it's not behaving like it should =o. [ ...8<... Removed a bunch of lines ...8<... ] IMHO, if you need to script something, use /bin/sh. It's the standard shell

Re: Bug with tcsh? : if evaluating true instead of false

2006-10-25 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Garrett Cooper wrote: > Ok, so I tried to make a simple script to add users so I wouldn't have > to type in groups/pw over and over again... the problem is that it's not > behaving like it should =o. > > Script: > #!/bin/tcsh -x > # > > if ( ( $# !=

Bug with tcsh? : if evaluating true instead of false

2006-10-24 Thread Garrett Cooper
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ok, so I tried to make a simple script to add users so I wouldn't have to type in groups/pw over and over again... the problem is that it's not behaving like it should =o. Script: #!/bin/tcsh -x # if ( ( $# != 0 ) ) { set GROUPS="";