grep: Command not found when starting tcsh
Note to the Cygwin-XFree86 team: I have Cygwin and XFree86 installed, and I was getting annoying messages of the form Grep: command not found every time I started up a tcsh shell. I finally tracked the problem down to the file /etc/profile.d/00xfree.csh. This script apparently executes before all other login scripts and is intended to put /usr/X11R6/bin on your path. Unfortunately it includes this line: eval echo ${PATH} | grep -q ${X11PATH} Because it's executing so early on, the PATH hasn't been properly set up yet, and grep was not being found. By replacing grep with /bin/grep, the problem was resolved. This had already been done in the file 00xfree.sh in the same directory so I'm surprised the 00xfree.csh file hadn't been modified too. --Eric
Re: grep: Command not found when starting tcsh
Eric, Let that be a lesson to you: nobody uses tcsh :) I will fix the .csh script when I get a chance. Funny that you noticed this problem, because I still have the inclusion of these scripts on my to-do list... I had forgotten that I had already included them. Harold J. Eric Bracken wrote: Note to the Cygwin-XFree86 team: I have Cygwin and XFree86 installed, and I was getting annoying messages of the form Grep: command not found every time I started up a tcsh shell. I finally tracked the problem down to the file /etc/profile.d/00xfree.csh. This script apparently executes before all other login scripts and is intended to put /usr/X11R6/bin on your path. Unfortunately it includes this line: eval echo ${PATH} | grep -q ${X11PATH} Because it's executing so early on, the PATH hasn't been properly set up yet, and grep was not being found. By replacing grep with /bin/grep, the problem was resolved. This had already been done in the file 00xfree.sh in the same directory so I'm surprised the 00xfree.csh file hadn't been modified too. --Eric
Re: grep: Command not found when starting tcsh
* Harold L Hunt II [EMAIL PROTECTED] [2003-01-16 09:11:29 -0500]: Let that be a lesson to you: nobody uses tcsh :) OI! Oh wait, I don't use tcsh any more. Never mind. :) -- John Buttery (Web page temporarily unavailable) msg04797/pgp0.pgp Description: PGP signature