Re: csh Shell
Alexis, It's usually not a good idea to address Cygwin-related questions to individual list members. By addressing the question to the main Cygwin mailing list, you get access to the combined expertise of many thousands of its members, as well as the benefits of web archiving. For your convenience, I've redirected this reply to the list, and set Reply-To accordingly. Please keep the rest of this discussion on the mailing list. More below. On Mon, 31 Jan 2005, Alexis Cothenet wrote: > Hi, > > I write you about a shell problem i have using cygwin because you seems > to know well about it ;-) > This is what i do: > > When i type > cat /cygdrive/d/Documents\ and\ Settings/file.txt | wc -l > it works well. > > Now if i put in an other ascii file a.txt the input > /cygdrive/d/Documents\ and\ Settings/file.txt > > and do > cat `cat a.txt | head -1` | wc -l > it doesn't work saying > cat:/cygdrive/d/Documents\: no such file or directory > cat: and\: no such file or directory... > > Clearly, the path is not understood when i put it an other file... > ( i tryed to put only file.txt as input in a.txt and it works) > > Have you got an idea how to solve my problem ? > > Thanks very much in advance! > Cheers, > Alexis I don't use tcsh (which I'm guessing is your shell, based on the subject), but I'd say it's a quoting problem. In bash, you'd put the `...` expression in double-quotes. This is not Cygwin-specific at all, BTW. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/
Re: csh Shell
Hi, Thank you very much for your help, now when i write echo $SHELL i can see tcsh! Cheers, Alexis On Fri, 21 Jan 2005, Igor Pechtchanski wrote: > On Fri, 21 Jan 2005, Igor Pechtchanski wrote: > > > On Fri, 21 Jan 2005, Alexis Cothenet wrote: > > > > > I have installed cygwin but i see that my defautl shell (doing echo > > > $SHELL) is bash. I would prefer to have csh shell. Do you know how i could > > > proceed ? > > > > Alexis, > > > > Cygwin doesn't have pure csh, but it does have tcsh, which should be > > compatible. > > > > To make it your "default" shell, you need to do two things: > > 1) Edit your /cygwin.bat and make it invoke "tcsh -l" instead of "bash > >--login -i". That way, when you click on the Cygwin shortcut, you'll > >get tcsh[*]. > > 2) Edit your /etc/profile, and change the shell entry from /bin/bash to > > Whoops, sorry! Correction: s/profile/passwd/ > Igor > > >/bin/tcsh. > > > > This should do it. HTH, > > Igor > > [*] There is a /bin/csh, but it's a Cygwin symlink, and you won't be able > > to invoke it via Windows mechanisms. > > -- > http://cs.nyu.edu/~pechtcha/ > |\ _,,,---,,_ [EMAIL PROTECTED] > ZZZzz /,`.-'`'-. ;-;;,_ [EMAIL PROTECTED] > |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. > '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! > > "The Sun will pass between the Earth and the Moon tonight for a total > Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT > -- 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/
Re: csh Shell
On Fri, 21 Jan 2005, Igor Pechtchanski wrote: > On Fri, 21 Jan 2005, Alexis Cothenet wrote: > > > I have installed cygwin but i see that my defautl shell (doing echo > > $SHELL) is bash. I would prefer to have csh shell. Do you know how i could > > proceed ? > > Alexis, > > Cygwin doesn't have pure csh, but it does have tcsh, which should be > compatible. > > To make it your "default" shell, you need to do two things: > 1) Edit your /cygwin.bat and make it invoke "tcsh -l" instead of "bash >--login -i". That way, when you click on the Cygwin shortcut, you'll >get tcsh[*]. > 2) Edit your /etc/profile, and change the shell entry from /bin/bash to Whoops, sorry! Correction: s/profile/passwd/ Igor >/bin/tcsh. > > This should do it. HTH, > Igor > [*] There is a /bin/csh, but it's a Cygwin symlink, and you won't be able > to invoke it via Windows mechanisms. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/
Re: csh Shell
On Fri, 21 Jan 2005, Alexis Cothenet wrote: > I have installed cygwin but i see that my defautl shell (doing echo > $SHELL) is bash. I would prefer to have csh shell. Do you know how i could > proceed ? Alexis, Cygwin doesn't have pure csh, but it does have tcsh, which should be compatible. To make it your "default" shell, you need to do two things: 1) Edit your /cygwin.bat and make it invoke "tcsh -l" instead of "bash --login -i". That way, when you click on the Cygwin shortcut, you'll get tcsh[*]. 2) Edit your /etc/profile, and change the shell entry from /bin/bash to /bin/tcsh. This should do it. HTH, Igor [*] There is a /bin/csh, but it's a Cygwin symlink, and you won't be able to invoke it via Windows mechanisms. -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_[EMAIL PROTECTED] ZZZzz /,`.-'`'-. ;-;;,_[EMAIL PROTECTED] |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "The Sun will pass between the Earth and the Moon tonight for a total Lunar eclipse..." -- WCBS Radio Newsbrief, Oct 27 2004, 12:01 pm EDT -- 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/
csh Shell
Hi all I have installed cygwin but i see that my defautl shell (doing echo $SHELL) is bash. I would prefer to have csh shell. Do you know how i could proceed ? Thanks very much in advance! Cheers, Alexis -- 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/