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
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
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]
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
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
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
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
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
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
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
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
>
> --
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
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
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/
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
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
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
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
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
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
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
> 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
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
* 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
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
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
> 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
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
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
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/
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
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
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
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
"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.
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
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 ]
; > 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:
> >
&
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
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
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]
--
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
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
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
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
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
"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/
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
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
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]
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
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
Many thanks to Syrus Nemat-Nasser and all who provided the solution to this
problem.
Joe
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
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
55 matches
Mail list logo