From owner-freebsd-current Sun May 19 11:12:17 2002 Delivered-To: freebsd-current@freebsd.org Received: from relay.pair.com (relay1.pair.com [209.68.1.20]) by hub.freebsd.org (Postfix) with SMTP id ED6E237B405 for ; Sun, 19 May 2002 11:12:12 -0700 (PDT) Received: (qmail 1961 invoked from network); 19 May 2002 18:12:11 -0000 Received: from 12-236-91-101.client.attbi.com (HELO ?10.1.1.198?) (12.236.91.101) by relay1.pair.com with SMTP; 19 May 2002 18:12:11 -0000 X-pair-Authenticated: 12.236.91.101 Mime-Version: 1.0 X-Sender: (Unverified) Message-Id: In-Reply-To: References: Date: Sun, 19 May 2002 11:12:00 -0700 To: Riccardo Torrini From: Mark Peek Subject: Re: tcsh Cc: freebsd-current@FreeBSD.ORG Content-Type: text/plain; charset="us-ascii" ; format="flowed" Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG At 6:14 PM +0200 5/19/02, Riccardo Torrini wrote: >If exists a directory named "sort" tcsh chdir to that dir instead of >executing sort present in path (and no, I have no "." anywere in path) > ># pwd >/usr/src/contrib ># find . -name Makefile | sort ># pwd >/usr/src/contrib/sort ># cd .. ># find . -name Makefile | /usr/bin/sort >./bind/Makefile >./bind/bin/Makefile >[...] > > >And it also happen with non existent commands: > ># pwd >/usr/src/contrib ># find . -name Makefile | libreadline ># pwd >/usr/src/contrib/libreadline I tried to reproduce this problem but it worked fine for me. # pwd /usr/src/contrib # find . -name Makefile | sort ./bind/Makefile ./bind/bin/Makefile [...] This could be due to something in your .cshrc file. Try this: # tcsh -f -c "find . -name Makefile | sort" the -f flag will prevent sourcing the .cshrc file. Mark To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message