Re: RE: [linux-392] csh won't run

From: Bruce I.
Sent on: Tuesday, May 13, 2008 10:03 AM
Too much shell religion for me!
Everyone knows you should be doing inside Emacs with elisp! ;) [dodging tomatos]

You might try installing tcsh, if you can. It is upwards compatible
from csh, and might offer help.

You mentioned filezilla. I've noticed problems in Cygwin, when I run
scripts with DOS CRLFs.
Hmm. I hope Mac OSX now uses \Ns.
Try running
  dos2unix rm_csh
You can also try tr or sed.

Of course, if you use Emacs, you'll see all CRLF line endings :)

Another thing that can go wrong, is if you have changed the alias of
ls. You should never run scripts with aliased commands, but it happens
all the time.
What happens, when you do
   ls ./*_*.jpg
(solve the problem by breaking it apart)

Instead try
  echo {thePath}/*_*.jpg
or
  \ls {thePath}/*_*.jpg
Note the leadiing '\'
You could also try `unalias`

http://www.kingst...­

As regards your prompt, try
  set
  env
  setenv
  echo $PS1   #sh syntax?
  echo {PS1}
Look at startup files, in particular
  /etc/profile
  /etc/*csh
  ~/.cshrc
  ~/.tcshrc
There could even be trouble in your X Window startup files, or,
shudder, /etc/rc/* daemons

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy