From owner-freebsd-hackers Fri Mar 31 13:42:39 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dt051n0b.san.rr.com (dt051n0b.san.rr.com [204.210.32.11]) by hub.freebsd.org (Postfix) with ESMTP id A573837BA60 for ; Fri, 31 Mar 2000 13:42:36 -0800 (PST) (envelope-from Doug@gorean.org) Received: from slave (doug@slave [10.0.0.1]) by dt051n0b.san.rr.com (8.9.3/8.9.3) with ESMTP id NAA73010; Fri, 31 Mar 2000 13:42:31 -0800 (PST) (envelope-from Doug@gorean.org) Date: Fri, 31 Mar 2000 13:42:31 -0800 (PST) From: Doug Barton X-Sender: doug@dt051n0b.san.rr.com To: Christian Weisgerber Cc: freebsd-hackers@freebsd.org Subject: Re: Proposed new Bourne shell init files In-Reply-To: <20000331224327.Y581@bigeye.rhein-neckar.de> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Fri, 31 Mar 2000, Christian Weisgerber wrote: > Doug Barton: > > > > export VAR=value > > The problem with that option is that it's not portable. > > It's just as portable as "set -o" and "alias". None of them are > available in the original Bourne shell, all of them in the POSIX > shell. In my mind there is a difference between items that are freebsd-exclusive (like set -o and alias) and items that we have unique implementations of, like export. The latter are available on other platforms, and therefore, IMO we should follow the more generally accepted format. Extending that argument to either not take advantage of features unique to FreeBSD (silly and wasteful) or to doing everything FreeBSD'ish just because we can (teaches a bad lesson) goes too far in either direction for my taste. > > > alias r='fc -s' > > > > Hrrmm... ok. I have no experience with that, but I wouldn't object to its > > inclusion. > > It's a pre-defined alias in ksh where the entire POSIX history > scheme is taken from. Roughly, it's the equivalent to the csh '!' > history substitution, although less powerful. Use "r" to repeat > the last command, "r cmd" to repeat the last command "cmd", and "r > foo=bar ..." to effect a substitution on the recalled command line. Ok, that sounds like a valuable addition, thanks. Doug -- "So, the cows were part of a dream that dreamed itself into existence? Is that possible?" asked the student incredulously. The master simply replied, "Mu." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message