Discussion:
bash:csh:Command not found
ram001
2007-01-21 00:26:02 UTC
Permalink
Hi guys

I am new to cygwin. when I am working on cygwin. I created a directory name
Scripts byusing mkdir Scripts in Cygwin. After that I created a csh file
inside the Scripts directory by using cat > Creator.csh. In this file i got
my C shell script. When I am trying to execute the script by using the csh
Creator.csh.It is throwing me an error like
bash:csh:command not found. I hope my shell is set default to Bash . how to
run my csh script. Can any one help me out. Thanks

Ram
--
View this message in context: http://www.nabble.com/bash%3Acsh%3ACommand-not-found-tf3047402.html#a8470937
Sent from the Cygwin Users mailing list archive at Nabble.com.
Larry Hall (Cygwin)
2007-01-21 01:02:25 UTC
Permalink
Post by ram001
Hi guys
I am new to cygwin. when I am working on cygwin. I created a directory name
Scripts byusing mkdir Scripts in Cygwin. After that I created a csh file
inside the Scripts directory by using cat > Creator.csh. In this file i got
my C shell script. When I am trying to execute the script by using the csh
Creator.csh.It is throwing me an error like
bash:csh:command not found. I hope my shell is set default to Bash . how to
run my csh script. Can any one help me out. Thanks
When sending a problem report, please read and follow the problem reporting
guidelines found here:

<http://cygwin.com/problems.html>

This keeps people on this list from having to make too many guesses about
what you've done and what your system configuration is.

Absent that, my WAG is that you have CRNL as line-endings in your script,
probably as a result of using an editor that insists on or wasn't
configured to not use them. See the "Editors" category in 'setup.exe'
for some editors you can install and that will not force you to CRNLs.

You will also find reading the bash release announcement illuminating:

<http://cygwin.com/ml/cygwin-announce/2006-12/msg00026.html>
--
Larry Hall http://www.rfk.com
RFK Partners, Inc. (508) 893-9779 - RFK Office
216 Dalton Rd. (508) 893-9889 - FAX
Holliston, MA 01746

_____________________________________________________________________

A: Yes.
Post by ram001
Q: Are you sure?
A: Because it reverses the logical flow of conversation.
Q: Why is top posting annoying in email?
Igor Peshansky
2007-01-21 01:18:32 UTC
Permalink
Post by ram001
I am new to cygwin. when I am working on cygwin. I created a directory
name Scripts byusing mkdir Scripts in Cygwin. After that I created a csh
file inside the Scripts directory by using cat > Creator.csh. In this
file i got my C shell script. When I am trying to execute the script by
using the csh Creator.csh.It is throwing me an error like
bash:csh:command not found. I hope my shell is set default to Bash . how
to run my csh script. Can any one help me out. Thanks
Please read what Larry said about problem reports. However, at a guess,
<http://cygwin.com/faq/faq.setup.html#faq.setup.what-packages> would also
be helpful in your case.
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ ***@cs.nyu.edu | ***@watson.ibm.com
ZZZzz /,`.-'`' -. ;-;;,_ Igor Peshansky, Ph.D. (name changed!)
|,4- ) )-,_. ,\ ( `'-' old name: Igor Pechtchanski
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!

Freedom is just another word for "nothing left to lose"... -- Janis Joplin
Dave Korn
2007-01-21 06:25:52 UTC
Permalink
Post by Igor Peshansky
Post by ram001
I am new to cygwin. when I am working on cygwin. I created a directory
name Scripts byusing mkdir Scripts in Cygwin. After that I created a csh
file inside the Scripts directory by using cat > Creator.csh. In this
file i got my C shell script. When I am trying to execute the script by
using the csh Creator.csh.It is throwing me an error like
bash:csh:command not found. I hope my shell is set default to Bash . how
to run my csh script. Can any one help me out. Thanks
Please read what Larry said about problem reports. However, at a guess,
<http://cygwin.com/faq/faq.setup.html#faq.setup.what-packages> would also
be helpful in your case.
Also, the C shell is called 'tcsh.exe', not 'csh.exe'.

~ $ csh
bash: csh: command not found
~ $ tcsh
[***@rainbow ~]$



cheers,
DaveK
--
Can't think of a witty .sigline today....
Corinna Vinschen
2007-01-21 10:20:39 UTC
Permalink
Post by Dave Korn
Also, the C shell is called 'tcsh.exe', not 'csh.exe'.
Hmm.

$ cat /etc/postinstall/tcsh.sh.done
#!/bin/sh
rm -f /usr/bin/csh /usr/bin/csh.exe /usr/bin/csh.lnk
ln -s tcsh /usr/bin/csh


Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
Dave Korn
2007-01-21 16:28:34 UTC
Permalink
Post by Corinna Vinschen
Post by Dave Korn
Also, the C shell is called 'tcsh.exe', not 'csh.exe'.
Hmm.
$ cat /etc/postinstall/tcsh.sh.done
#!/bin/sh
rm -f /usr/bin/csh /usr/bin/csh.exe /usr/bin/csh.lnk
ln -s tcsh /usr/bin/csh
How bizarre, it must have failed for me and the OP in some way. I've also
got it as a .done but there's no sign of any link there.

cheers,
DaveK
--
Can't think of a witty .sigline today....
Thorsten Kampe
2007-01-21 16:37:12 UTC
Permalink
* ram001 (Sat, 20 Jan 2007 16:26:02 -0800 (PST))
Post by ram001
I am new to cygwin. when I am working on cygwin. I created a directory name
Scripts byusing mkdir Scripts in Cygwin. After that I created a csh file
inside the Scripts directory by using cat > Creator.csh. In this file i got
my C shell script. When I am trying to execute the script by using the csh
Creator.csh.It is throwing me an error like
bash:csh:command not found. I hope my shell is set default to Bash . how to
run my csh script.
Well, I would actually first verify that you installed tcsh/csh.
Having people tell you that you are unable to run csh scripts because
you don't have csh is kind of errm embarassing.

Thorsten
ram001
2007-01-21 18:40:33 UTC
Permalink
hi Guys,

Thanks for your replies. As per you replies i understand that csh/tcsh is
not installed for me. But I installed cygwin as per the instructions in the
manual. Can any one help me how to check whether all the scripts are
installed in Cygwin. Once again thanks for ur replies

Ram
Post by Thorsten Kampe
* ram001 (Sat, 20 Jan 2007 16:26:02 -0800 (PST))
Post by ram001
I am new to cygwin. when I am working on cygwin. I created a directory name
Scripts byusing mkdir Scripts in Cygwin. After that I created a csh file
inside the Scripts directory by using cat > Creator.csh. In this file i got
my C shell script. When I am trying to execute the script by using the csh
Creator.csh.It is throwing me an error like
bash:csh:command not found. I hope my shell is set default to Bash . how to
run my csh script.
Well, I would actually first verify that you installed tcsh/csh.
Having people tell you that you are unable to run csh scripts because
you don't have csh is kind of errm embarassing.
Thorsten
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
--
View this message in context: http://www.nabble.com/bash%3Acsh%3ACommand-not-found-tf3047402.html#a8477756
Sent from the Cygwin Users mailing list archive at Nabble.com.
Dave Korn
2007-01-21 19:09:07 UTC
Permalink
Post by ram001
hi Guys,
Thanks for your replies. As per you replies i understand that csh/tcsh is
not installed for me. But I installed cygwin as per the instructions in the
manual. Can any one help me how to check whether all the scripts are
installed in Cygwin. Once again thanks for ur replies
Ram
You need to run setup.exe again, using "Install from internet", and look for
tcsh under the 'Shells' category, or in the 'Full' view on the package
chooser. Click it to 'Install', then 'Next' your way through to the end.


cheers,
DaveK
--
Can't think of a witty .sigline today....
Continue reading on narkive:
Loading...