Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2000 13:42:31 -0800 (PST)
From:      Doug Barton <Doug@gorean.org>
To:        Christian Weisgerber <naddy@mips.rhein-neckar.de>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Proposed new Bourne shell init files
Message-ID:  <Pine.BSF.4.21.0003311338030.72992-100000@dt051n0b.san.rr.com>
In-Reply-To: <20000331224327.Y581@bigeye.rhein-neckar.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.21.0003311338030.72992-100000>