From owner-freebsd-questions Sun Feb 1 02:10:01 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id CAA17986 for questions-outgoing; Sun, 1 Feb 1998 02:10:01 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from jaguar.ir.miami.edu (jaguar.ir.miami.edu [129.171.32.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id CAA17947 for ; Sun, 1 Feb 1998 02:09:58 -0800 (PST) (envelope-from marcus@miami.edu) Received: from localhost by jaguar.ir.miami.edu (PMDF V5.1-10 #24029) with SMTP id <0ENP001012WJ4U@jaguar.ir.miami.edu> for questions@FreeBSD.ORG; Sun, 1 Feb 1998 05:09:55 -0500 (EST) Date: Sun, 01 Feb 1998 05:09:55 -0500 (EST) From: "Joe \"Marcus\" Clarke" Subject: Re: rehash missing In-reply-to: To: "Matthew D. Fuller" Cc: laszlo vagner , Greg Lehey , questions@FreeBSD.ORG Message-id: MIME-version: 1.0 Content-type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG X-To-Unsubscribe: mail to majordomo@FreeBSD.org "unsubscribe questions" A quick way to find out if a command is built into the shell or not, is to run 'which '. It will tell you right waway. Joe Clarke On Sun, 1 Feb 1998, Matthew D. Fuller wrote: > On Sat, 31 Jan 1998, laszlo vagner wrote: > > > Doooh!.. > > > > ok so i am dumb..... > I wouldn't go that far... > > > i didnt realize rehash was part of the shell > > > > i did a "csh" and tried "rehash" it works now! > > > > actually it always worked if you use the right shell ha! > > > > So how do you know what commands are in each shell?? > Well, when you read the man page for that command, if it slams you into > the manpage for a shell, then it's a shell builtin. > But sometimes you have to be sneaky. > For instance, I had this trype of problem a month or so ago. > I was trying to nice out some processes, and I couldn't. What I didn't > know was that, besides the 'nice' binary command, there's a 'nice' builtin > to tcsh (which I use), which has a completely different argument format. > So, I s'pose all you can do is trial and error. > > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* > | FreeBSD; the way computers were meant to be | > * "The only reason I'm burning my candle at both ends, is * > | that I haven't figured out how to light the middle yet."| > * fullermd@futuresouth.com :-} MAtthew Fuller * > | http://keystone.westminster.edu/~fullermd | > *-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-*-* > > > >