Re: csh: how to use indirect ref to env vars

2008-07-07 Thread michael
On Wed, 2008-06-25 at 08:03 -0700, ss11223 wrote: > On Jun 25, 9:40 am, michael <[EMAIL PROTECTED]> wrote: > > Hi, I have acshscript in which I'd like to do set up a list of vars > > and then to chk each of these are set, something like the below. > > However, I can't find the magic incantation tha

Re: csh: how to use indirect ref to env vars

2008-06-25 Thread ss11223
On Jun 25, 12:40 pm, michael <[EMAIL PROTECTED]> wrote: > ah, I see rather than testing a variable we try and use it and catch any > error... it seems to work as you say... although this seems slightly > more elegant if less easy to add new VarN to: > > if ( $?InMetFiles == 0 || $?InTerFile == 0

Re: csh: how to use indirect ref to env vars

2008-06-25 Thread michael
On Wed, 2008-06-25 at 08:03 -0700, ss11223 wrote: > On Jun 25, 9:40 am, michael <[EMAIL PROTECTED]> wrote: > > Hi, I have acshscript in which I'd like to do set up a list of vars > > and then to chk each of these are set, something like the below. > > However, I can't find the magic incantation tha

Re: csh: how to use indirect ref to env vars

2008-06-25 Thread ss11223
On Jun 25, 9:40 am, michael <[EMAIL PROTECTED]> wrote: > Hi, I have acshscript in which I'd like to do set up a list of vars > and then to chk each of these are set, something like the below. > However, I can't find the magic incantation that allows to to check > ${$Vars} eg if $InMetFiles is set o

Re: csh: how to use indirect ref to env vars

2008-06-25 Thread michael
On Wed, 2008-06-25 at 15:02 +0100, Wackojacko wrote: > michael wrote: > > Hi, I have a csh script in which I'd like to do set up a list of vars > > and then to chk each of these are set, something like the below. > > However, I can't find the magic incantation that allows to to check > > ${$Vars} e

Re: csh: how to use indirect ref to env vars

2008-06-25 Thread Wackojacko
michael wrote: Hi, I have a csh script in which I'd like to do set up a list of vars and then to chk each of these are set, something like the below. However, I can't find the magic incantation that allows to to check ${$Vars} eg if $InMetFiles is set on the first loop - suggestions welcome! #!/

Re: csh [was: Using tar saving Disk-space]

2001-05-30 Thread Dave Carrigan
Joerg Johannes <[EMAIL PROTECTED]> writes: > The problem is: this box is not my own, in fact, it is not even a debian > one (Sun Solaris) and, the worst of all: It only runs csh because the > admin does not like bash (I hate csh, too) Solaris boxes have ksh, which is a pretty solid shell. I like

Re: csh [was: Using tar saving Disk-space]

2001-05-30 Thread Roy Culley
> Andrew Suffield wrote: > > > > On Wed, May 30, 2001 at 10:36:13AM +0200, Joerg Johannes wrote: > > > How would this look for the csh? > > > > I'm going to assume you're just plain unaware of this: > > > > csh programming Considered Harmful > > > > Somebody can probably provide a link to a cop

Re: csh [was: Using tar saving Disk-space]

2001-05-30 Thread Joerg Johannes
Andrew Suffield wrote: > > On Wed, May 30, 2001 at 10:36:13AM +0200, Joerg Johannes wrote: > > How would this look for the csh? > > I'm going to assume you're just plain unaware of this: > > csh programming Considered Harmful > > Somebody can probably provide a link to a copy of the essay. csh

Re: csh [was: Using tar saving Disk-space]

2001-05-30 Thread Andrew Suffield
On Wed, May 30, 2001 at 10:36:13AM +0200, Joerg Johannes wrote: > How would this look for the csh? I'm going to assume you're just plain unaware of this: csh programming Considered Harmful Somebody can probably provide a link to a copy of the essay. csh scripts are a majorly Bad Idea[tm]. It has

Re: csh

1997-03-07 Thread Vadim Vygonets
On Thu, 6 Mar 1997, Pete Poff wrote: > Hi, > on what ftp site can I get the csh shell and what file name is it > called. For debian, you may get tcsh from any debian mirror in the directory shells (it's, of course, called csh). I'm using (and maintaining) tcsh, but I also have csh for s

Re: csh

1997-03-06 Thread J.P.D. Kooij
On Thu, 6 Mar 1997, Pete Poff wrote: > Hi, > on what ftp site can I get the csh shell and what file name is it > called. At ftp.debian.org of course, you silly ;-) Better still, use a mirror of ftp.debian.org that's nearby to you. If you have a cd with debian, that's even faster. Try

Re: csh * expantion problem

1996-11-21 Thread Raja R Harinath
"Neal R. Dalton" <[EMAIL PROTECTED]> writes: > Under csh (not a link to tcsh), when I do a "echo *", I get the following > error: > > echo: No match. > > It work on other OSs. I tried echo * in an empty directory on a Solaris, SunOS, and HP/UX -- all the `csh' and `tcsh' agree -- they are

Re: csh * expantion problem

1996-11-21 Thread Neal R. Dalton
On Wed, 20 Nov 1996, Bruce Perens wrote: > If you want to echo the list of files in the current directory, use: > > echo * The point is this doesn't work. Is there a working version of csh? Neal -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTE

Re: csh * expantion problem

1996-11-21 Thread Bruce Perens
If you really want to echo an asterisk, use: echo '*' If you want to echo the list of files in the current directory, use: echo * If the current directory is empty, you will get the "no match" message. Is that what is happening? Bruce -- Bruce Perens K6BP [EMAIL PROTE

Re: csh logout - shutdown

1996-09-19 Thread Syrus Nemat-Nasser
On Wed, 18 Sep 1996, Joe Manarolla wrote: > I prefer to use the csh shell to interface with Debian. However, I cannot > call shutdown from the csh command line. I believe that I could accomplish > this by making a call to the proper script or editing one of the scripts in > init.d. Any help would