Date: Fri, 6 Sep 2002 22:40:07 +0200 From: Martin Heinen <martin@sumuk.de> To: freebsd-stable@FreeBSD.ORG Subject: Re: Shell builtin command changed? Message-ID: <20020906224007.A51673@sumuk.de> In-Reply-To: <200209061843.g86IhnHR066470@lurza.secnetix.de>; from olli@secnetix.de on Fri, Sep 06, 2002 at 08:43:49PM %2B0200 References: <20020906183733.A51312@sumuk.de> <200209061843.g86IhnHR066470@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 06, 2002 at 08:43:49PM +0200, Oliver Fromme wrote: > Martin Heinen <martin@sumuk.de> wrote: > > I used command inside a shell function in the following way: > > > > | cd () { > > | command cd $* && PS1="`pwd`# " > > | } > > > > Is this usage of command no longer supported or is it a bug in sh? > > I don't know about that bug ("command" works for me, but > my 4-stable is a few weeks older), but I'd suggest the RTFM and reading the Release Notes reveals that this is a feature, stupid me ... > following definition of the shell function instead: > > cd(){ chdir "$@" && PS1="`pwd`# ";} I wasn't aware of chdir, this makes things easier, thanks. (RTFM would have revealed this too :-() -- Marxpitn To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020906224007.A51673>