Re: Problem with csh

2022-07-03 Thread Stephen P. Molnar
Deleted ~/.csh. Problem solved. On 07/02/2022 05:23 PM, Will Mengarini wrote: On Sat, Jul 02, 2022 at 01:18:08PM -0400, Stephen P. Molnar wrote: comp@AbNormal:~$ csh Bad : modifier in $ '/'. On Sat, Jul 02, 2022 at 03:31:12PM -0400, Bijan Soleymani wrote: Quick Google search show

Re: Problem with csh

2022-07-02 Thread Will Mengarini
On Sat, Jul 02, 2022 at 01:18:08PM -0400, Stephen P. Molnar wrote: >>>> comp@AbNormal:~$ csh >>>> Bad : modifier in $ '/'. On Sat, Jul 02, 2022 at 03:31:12PM -0400, Bijan Soleymani wrote: >> Quick Google search shows it is an issue with the syntax of def

Re: Problem with csh

2022-07-02 Thread Klaus Singvogel
Stephen P. Molnar wrote: > comp@AbNormal:~$ csh > Bad : modifier in $ '/'. A colon ":" is a modifier in the tcsh for variables. For instance: set f=file.c echo $f:r --> output: file [note the missing ".c", only root name]

Re: Problem with csh

2022-07-02 Thread Greg Wooledge
On Sat, Jul 02, 2022 at 03:31:12PM -0400, Bijan Soleymani wrote: > On 2022-07-02 14:24, Greg Wooledge wrote: > > On Sat, Jul 02, 2022 at 01:18:08PM -0400, Stephen P. Molnar wrote: > > > I have one application that I compile which requires the csh shell. > > > &g

Re: Problem with csh

2022-07-02 Thread Bijan Soleymani
On 2022-07-02 14:24, Greg Wooledge wrote: On Sat, Jul 02, 2022 at 01:18:08PM -0400, Stephen P. Molnar wrote: I have one application that I compile which requires the csh shell. comp@AbNormal:~$ csh Bad : modifier in $ '/'. AbNormal:~% I've never seen this before but the comp

Re: Problem with csh

2022-07-02 Thread Greg Wooledge
On Sat, Jul 02, 2022 at 01:18:08PM -0400, Stephen P. Molnar wrote: > I have one application that I compile which requires the csh shell. What does that even *mean*? If one of the *scripts* that you *execute* during the build uses csh, well, OK. I would write off that particular application

Problem with csh

2022-07-02 Thread Stephen P. Molnar
I am running a new installation of Bullseye with the bash shell. I have one application that I compile which requires the csh shell. WHen I change from bash to csh I get: comp@AbNormal:~$ csh Bad : modifier in $ '/'. AbNormal:~% I've never seen this before but the compilatio

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

2008-07-07 Thread michael
can't find the magic incantation that allows to to check > > ${$Vars} eg if $InMetFiles is set on the first loop - suggestions > > welcome! > > > > #!/bin/csh > > foreach Vars (InMetFiles InTerFile OutDir) > > echo Checking $Vars\.\.\. > > if ( ${?Var

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

2008-06-25 Thread ss11223
0 || $?InTerFile == 0 {etc}) then >echo prob >exit -1 > endif > > -- Not quite, see the section for "eval" in the csh man page. The idea is to use eval to re-evaluate the variable after the name substitution. Here is a cleaner version of the concept: #!/bin/cs

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

2008-06-25 Thread michael
can't find the magic incantation that allows to to check > > ${$Vars} eg if $InMetFiles is set on the first loop - suggestions > > welcome! > > > > #!/bin/csh > > foreach Vars (InMetFiles InTerFile OutDir) > > echo Checking $Vars\.\.\. > > if ( ${?Var

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

2008-06-25 Thread ss11223
rs} eg if $InMetFiles is set on the first loop - suggestions > welcome! > > #!/bin/csh > foreach Vars (InMetFiles InTerFile OutDir) > echo Checking $Vars\.\.\. > if ( ${?Vars} == 0) then > echo $Vars not set \- aborting > exit 1 > endif > end > > --

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

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 - suggestio

Re: unexpected csh behaviour

2008-06-25 Thread michael
On Wed, 2008-06-25 at 15:10 +0100, michael wrote: > In the below, I was expecting $#test to return 1 and $%test to return 7 > - can somebody clarify why this isn't so? Ta, $test > > > > ratty:~/models-3/mcip3> setenv test michael > ratty:~/models-3/mcip3> echo $test > michael > ratty:~/models-3/

unexpected csh behaviour

2008-06-25 Thread michael
In the below, I was expecting $#test to return 1 and $%test to return 7 - can somebody clarify why this isn't so? Ta, $test ratty:~/models-3/mcip3> setenv test michael ratty:~/models-3/mcip3> echo $test michael ratty:~/models-3/mcip3> echo $?test 1 ratty:~/models-3/mcip3> echo $#test michael rat

csh: how to use indirect ref to env vars

2008-06-25 Thread michael
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! #!/bin/c

Re: delete key doesn't work with csh in xterm session

2004-06-07 Thread Paul Scott
Lucas Albers wrote: Bob Proulx said: For users using /bin/csh and running rxvt-xterm, their delete key does not work. Users running /bin/bash and running rxvt-xterm, their delete key does work. Both delete keys work on an ssh session. I finally fixed the problem by defining in

Re: delete key doesn't work with csh in xterm session

2004-06-07 Thread Lucas Albers
Bob Proulx said: >> For users using /bin/csh and running rxvt-xterm, their delete key does >> not >> work. >> Users running /bin/bash and running rxvt-xterm, their delete key does >> work. >> >> Both delete keys work on an ssh session. > > When you s

Re: delete key doesn't work with csh in xterm session

2004-05-30 Thread Bob Proulx
arge. > > Not so hard, been really happy with the new setup. Glad to hear it. Just noting that none of the discussion I provide here should be any different between Red Hat and Debian. Both are using the Linux kernel and this is all related to the kernel. > For users using /bin/csh and

Re: delete key doesn't work with csh in xterm session

2004-05-27 Thread Thomas Dickey
Croy, Nathan <[EMAIL PROTECTED]> wrote: >> For users using /bin/csh and running rxvt-xterm, their delete >> key does not >> work. >> Users running /bin/bash and running rxvt-xterm, their delete >> key does work. >> >> Both delete keys work on a

RE: delete key doesn't work with csh in xterm session

2004-05-27 Thread Lucas Albers
Croy, Nathan said: >> For users using /bin/csh and running rxvt-xterm, their delete >> key does not >> work. >> Users running /bin/bash and running rxvt-xterm, their delete >> key does work. > stty erase Nope, doesn't work. Thanks though. -- --Luke

RE: delete key doesn't work with csh in xterm session

2004-05-26 Thread Croy, Nathan
> For users using /bin/csh and running rxvt-xterm, their delete > key does not > work. > Users running /bin/bash and running rxvt-xterm, their delete > key does work. > > Both delete keys work on an ssh session. > I've looke through google, and found some items on s

delete key doesn't work with csh in xterm session

2004-05-26 Thread Lucas Albers
I recently upgraded our central server from redhat 7.3 to debian woody/sarge. Not so hard, been really happy with the new setup. For users using /bin/csh and running rxvt-xterm, their delete key does not work. Users running /bin/bash and running rxvt-xterm, their delete key does work. Both

Re: suppressing "TERM: Undefined variable" in csh

2001-12-08 Thread Dimitri Maziuk
* dman ([EMAIL PROTECTED]) spake thusly: > > The Solaris boxes at school default to /bin/csh as the shell, and this > can't be changed. In my .cshrc I have lines like > > if ( "$TERM" == "linux" ) then > setenv TERM vt100 > exec ba

suppressing "TERM: Undefined variable" in csh

2001-12-08 Thread dman
The Solaris boxes at school default to /bin/csh as the shell, and this can't be changed. In my .cshrc I have lines like if ( "$TERM" == "linux" ) then setenv TERM vt100 exec bash endif if ( "$TERM" == "PuTTY" ) then setenv TERM xterm

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

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

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 pr

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

Re: Test existence of shell variable, bash, csh

2001-05-06 Thread Dimitri Maziuk
g of presence of a variable. > > ...but I'm not aware of a similar bash/korn/bourne feature. Anyone? Just as a side note: 'setenv MYVAR "/path:$MYVAR"' will fail in [t]csh if MYVAR is not defined, hence constructs like if ( $?MYVAR ) then setenv MYVAR "/usr/

Re: Test existence of shell variable, bash, csh

2001-05-06 Thread Karsten M. Self
on Sun, May 06, 2001 at 01:54:26PM +0300, Tommi Komulainen ([EMAIL PROTECTED]) wrote: > On Sat, May 05, 2001 at 07:25:35PM -0700, Karsten M. Self wrote: > > on Sun, May 06, 2001 at 02:22:40AM +0300, Tommi Komulainen ([EMAIL > > PROTECTED]) wrote: > > > > > > if test "${LANG+set}" = set; then LAN

Re: Test existence of shell variable, bash, csh

2001-05-06 Thread Richard Cobbe
Lo, on Saturday, May 5, Ethan Benson did write: > On Sat, May 05, 2001 at 02:34:47PM -0700, Karsten M. Self wrote: > > This came up on another list. The problem involves testing existence of > > a Unix shell variable from another program with limited system > > interaction features. > > > > I us

Re: Test existence of shell variable, bash, csh

2001-05-06 Thread Tommi Komulainen
On Sat, May 05, 2001 at 07:25:35PM -0700, Karsten M. Self wrote: > on Sun, May 06, 2001 at 02:22:40AM +0300, Tommi Komulainen ([EMAIL > PROTECTED]) wrote: > > > > if test "${LANG+set}" = set; then LANG=C; export LANG; fi > > Close, but not quite. It's probably the nearest thing to a winner I've

Re: Test existence of shell variable, bash, csh

2001-05-05 Thread Karsten M. Self
on Sun, May 06, 2001 at 02:22:40AM +0300, Tommi Komulainen ([EMAIL PROTECTED]) wrote: > On Sat, May 05, 2001 at 02:34:47PM -0700, Karsten M. Self wrote: > > > > In contrast, csh and derivatives have: > > > >$?MYVAR > > > > ...which allows testing of

Re: Test existence of shell variable, bash, csh

2001-05-05 Thread Alan Shutko
"Karsten M. Self" writes: > ...but I'm not aware of a similar bash/korn/bourne feature. Anyone? if [ "${VAR:-invalid" = "invalid" ] ; echo "Unset" fi ? -- Alan Shutko <[EMAIL PROTECTED]> - In a variety of flavors! Happiness is the greatest good.

Re: Test existence of shell variable, bash, csh

2001-05-05 Thread Ethan Benson
r quite awhile and have yet to encounter problems, maybe test -n is not portable i don't think so though. man test says -n tests whether the string is not null, whereas -z tests that the string is null. you can also get away with: if [ "$MYVAR" ] ; then echo "MYVAR is

Re: Test existence of shell variable, bash, csh

2001-05-05 Thread Ethan Benson
On Sat, May 05, 2001 at 04:35:02PM -0700, Karsten M. Self wrote: > > > > Some bourne shells don't like testing variables that don't exist yet. > > That's precisely what we're trying to test. where you run in to trouble really is when you don't quote the variable, for example: if [ $FOO = bar ]

Re: Test existence of shell variable, bash, csh

2001-05-05 Thread Karsten M. Self
; > fi > > > > ...which essentially checks whether or not the variable has a non-null > > value. But would report that $MYVAR doesn't exist if in fact it was set > > equal to "". > > > > In contrast, csh and derivatives have: > > &

Re: Test existence of shell variable, bash, csh

2001-05-05 Thread Tommi Komulainen
On Sat, May 05, 2001 at 02:34:47PM -0700, Karsten M. Self wrote: > > In contrast, csh and derivatives have: > >$?MYVAR > > ...which allows testing of presence of a variable. > > ...but I'm not aware of a similar bash/korn/bourne feature. Anyone? Coming soo

Re: Test existence of shell variable, bash, csh

2001-05-05 Thread Eric G. Miller
R doesn't exist if in fact it was set > equal to "". > > In contrast, csh and derivatives have: > >$?MYVAR > > ...which allows testing of presence of a variable. > > ...but I'm not aware of a similar bash/korn/bourne feature. Anyone? #! /bin/sh

Re: Test existence of shell variable, bash, csh

2001-05-05 Thread MaD dUCK
also sprach Karsten M. Self (on Sat, 05 May 2001 02:34:47PM -0700): > ...but I'm not aware of a similar bash/korn/bourne feature. Anyone? if [ "$variable" ]; then ... martin; (greetings from the heart of the sun.) \ echo mailto: !#^."<*>"|tr "<*> mailto:"; [EMAIL PROTECTED] --

Test existence of shell variable, bash, csh

2001-05-05 Thread Karsten M. Self
else echo "MYVAR exists, value: $MYVAR" fi ...which essentially checks whether or not the variable has a non-null value. But would report that $MYVAR doesn't exist if in fact it was set equal to "". In contrast, csh and derivatives have: $?MYVAR ...which allo

(t)csh and the "if" statement

1998-11-02 Thread Clemens Heuberger
I want to run the shell-script #!/bin/csh if ($?EDITOR) echo "Setting EDITOR" the result is as follows: then: then/endif not found. what was not my intention. Any help? (I have to use csh instead of bash since I have to install some software package with twenty csh-Shell-script

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

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

csh

1997-03-06 Thread Pete Poff
Hi, on what ftp site can I get the csh shell and what file name is it called. Pete Poff---AKA---BlackJack Personal E-Mail Address: [EMAIL PROTECTED] Kyron E-Mail Address:[EMAIL PROTECTED

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/

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 "uns

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

csh * expantion problem

1996-11-20 Thread Neal R. Dalton
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. Thanks, Neal -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]

more on csh bug

1996-09-26 Thread Randy Gobbel
After further investigation, it appears that the bugs I reported in my earlier message exist only in the Linux version of csh. tcsh and the FreeBSD version of csh do *not* have the bugs. -Randy -- http://cogsci.ucsd.edu/~gobbel/ NOTICE: I DO NOT ACCEPT UNSOLICITED COMMERCIAL EMAIL MESSAGES OF

Two serious csh bugs

1996-09-26 Thread Randy Gobbel
I found not one but two rather gross bugs in /bin/csh. The incredibly bizarre symptom (on my system) is that if you try to run csh while cd'ed to a subdirectory of your home directory whose full pathname is exactly 28 characters long, csh dies with a segmentation fault. Thanks to Bruce P

csh logout - shutdown (solved)

1996-09-24 Thread Joe Manarolla
Many thanks to Syrus Nemat-Nasser and all who provided the solution to this problem. Joe

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. An

csh logout - shutdown

1996-09-18 Thread Joe Manarolla
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 be greatly appreciated