Date: Fri, 3 Mar 2000 10:56:26 -0500 (EST) From: Garrett Wollman <wollman@khavrinen.lcs.mit.edu> To: Assar Westerlund <assar@sics.se> Cc: current@FreeBSD.ORG Subject: Re: C shell scripts (was: Re: which(1), rewritten in C?) Message-ID: <200003031556.KAA73010@khavrinen.lcs.mit.edu> In-Reply-To: <5lln40qcpj.fsf@assaris.sics.se> References: <20000303005651.A62723@dragon.nuxi.com> <200003030909.KAA72276@hugo10.ka.punkt.de> <20000303073621.A91188@dragon.nuxi.com> <5lln40qcpj.fsf@assaris.sics.se>
next in thread | previous in thread | raw e-mail | index | archive | help
<<On 03 Mar 2000 16:45:44 +0100, Assar Westerlund <assar@sics.se> said: > There's a real reason for not writing this in csh. Because the > built-in function will return results for csh, which might not be the > right ones for other shells. The error is in using `which' with another shell. The correct command to use with POSIX-ish shells (sh, ksh, bash, etc.) is `type'. -GAWollman -- Garrett A. Wollman | O Siem / We are all family / O Siem / We're all the same wollman@lcs.mit.edu | O Siem / The fires of freedom Opinions not those of| Dance in the burning flame MIT, LCS, CRS, or NSA| - Susan Aglukark and Chad Irschick To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200003031556.KAA73010>