From owner-freebsd-stable Fri Sep 6 13:40:34 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 18AC737B400 for ; Fri, 6 Sep 2002 13:40:32 -0700 (PDT) Received: from Kain.sumuk.de (Kain.sumuk.de [213.221.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1E73543E3B for ; Fri, 6 Sep 2002 13:40:24 -0700 (PDT) (envelope-from martin@sumuk.de) Received: from Moses.earth.sol (Moses.earth.sol [192.168.1.1]) by Kain.sumuk.de (8.12.5/8.12.5) with ESMTP id g86KeAbn046599 for ; Fri, 6 Sep 2002 22:40:12 +0200 (CEST) (envelope-from martin@sumuk.de) Received: (from vincent@localhost) by Moses.earth.sol (8.11.6/8.11.6) id g86Ke8B52120 for freebsd-stable@FreeBSD.ORG; Fri, 6 Sep 2002 22:40:08 +0200 (CEST) (envelope-from vincent) Date: Fri, 6 Sep 2002 22:40:07 +0200 From: Martin Heinen To: freebsd-stable@FreeBSD.ORG Subject: Re: Shell builtin command changed? Message-ID: <20020906224007.A51673@sumuk.de> Reply-To: freebsd-stable@FreeBSD.ORG References: <20020906183733.A51312@sumuk.de> <200209061843.g86IhnHR066470@lurza.secnetix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200209061843.g86IhnHR066470@lurza.secnetix.de>; from olli@secnetix.de on Fri, Sep 06, 2002 at 08:43:49PM +0200 Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Sep 06, 2002 at 08:43:49PM +0200, Oliver Fromme wrote: > Martin Heinen 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