delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/04/13/19:23:57

X-Spam-Check-By: sourceware.org
Date: Fri, 13 Apr 2007 16:23:35 -0700
From: Keith Thompson <kst AT mib DOT org>
To: cygwin AT cygwin DOT com
Cc: Keith Thompson <kst AT mib DOT org>
Message-ID: <20070413232335.GA27411@nuthaus.mib.org>
Mime-Version: 1.0
User-Agent: Mutt/1.4.1i
Subject: tcsh-6.15.00-1 can't find cat, cut, sed
X-SA-Exim-Connect-IP: <locally generated>
X-SA-Exim-Mail-From: kst AT mib DOT org
X-SA-Exim-Version: 4.1+cvs (built Wed, 03 Nov 2004 11:22:41 -0800)
X-SA-Exim-Scanned: Yes (on nuthaus.mib.org)
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com

I just upgraded to tcsh 6.15.00-1.  When I start a login shell,
I get the following error messages:

cat: Command not found.
cut: Command not found.
cat: Command not found.
cut: Command not found.
sed: Command not found.

(The command I use to do this is
    "C:\cygwin\bin\rxvt.exe -fn 9x15 -fb 9x15bold -e /bin/tcsh -l"
executed from a Windows shortcut in my Start menu.)

I've tracked this down to the script "/etc/profile.d/complete.tcsh",
which is invoked from "/etc/csh.cshrc".  The complete.tcsh script
assumes that $PATH / $path has been set, when in fact it has not.
This is new code in complete.tcsh; it wasn't there before I upgraded
to tcsh-6.15.00-1 (and "cygcheck -f /etc/profile.d/complete.tcsh"
prints "tcsh-6.15.00-1").

The bug reporting guidelines say to attach the output of
"cygcheck -s -v -r", but it's pretty big, and I *think* the only
relevant content is one line:

tcsh                     6.15.00-1

If you need the full output, let me know and I'll provide it.

I've worked around this by modifying the complete.tcsh script,
changing *almost* all occurrences of the words "cat", "cut", and
"sed" to "/bin/cat", "/bin/cut", and "/bin/sed", respectively.
I can provide a patch (context diff) if you like.  The occurences
that I *didn't* replace are:

% egrep -n '[^/a-z](cat|cut|sed)\>' /etc/profile.d/complete.tcsh
685:                    continue convert-links cut-dirs= debug \
922:    complete sed    c/--/"(quiet silent version help expression file)"/   \
951:    complete cat    c/--/"(number-nonblank number squeeze-blank show-all \

-- 
Keith Thompson (The_Other_Keith) kst AT mib DOT org  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center           <*>  <http://users.sdsc.edu/~kst>
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019