Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 31 Mar 2000 22:43:27 +0200
From:      Christian Weisgerber <naddy@mips.rhein-neckar.de>
To:        Doug Barton <Doug@gorean.org>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: Proposed new Bourne shell init files
Message-ID:  <20000331224327.Y581@bigeye.rhein-neckar.de>
In-Reply-To: <38E42987.856C2215@gorean.org>; from Doug@gorean.org on Thu, Mar 30, 2000 at 08:28:55PM -0800
References:  <38E2F801.548AAAF1@gorean.org> <8c0k5m$9fp$1@bigeye.rhein-neckar.de> <38E42987.856C2215@gorean.org>

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

> >     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.

-- 
Christian "naddy" Weisgerber                  naddy@mips.rhein-neckar.de


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?20000331224327.Y581>