From owner-freebsd-hackers Fri Mar 31 13:33:33 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from news-ma.rhein-neckar.de (news-ma.rhein-neckar.de [193.197.90.3]) by hub.freebsd.org (Postfix) with ESMTP id 437B737B8D0 for ; Fri, 31 Mar 2000 13:33:27 -0800 (PST) (envelope-from naddy@bigeye.rhein-neckar.de) Received: from bigeye.rhein-neckar.de (uucp@localhost) by news-ma.rhein-neckar.de (8.8.8/8.8.8) with bsmtp id XAA12285; Fri, 31 Mar 2000 23:33:22 +0200 (CEST) (envelope-from naddy@bigeye.rhein-neckar.de) Received: (from naddy@localhost) by bigeye.rhein-neckar.de (8.9.3/8.9.3) id WAA54968; Fri, 31 Mar 2000 22:43:27 +0200 (CEST) (envelope-from naddy) Date: Fri, 31 Mar 2000 22:43:27 +0200 From: Christian Weisgerber To: Doug Barton Cc: freebsd-hackers@freebsd.org Subject: Re: Proposed new Bourne shell init files Message-ID: <20000331224327.Y581@bigeye.rhein-neckar.de> References: <38E2F801.548AAAF1@gorean.org> <8c0k5m$9fp$1@bigeye.rhein-neckar.de> <38E42987.856C2215@gorean.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0.1i In-Reply-To: <38E42987.856C2215@gorean.org>; from Doug@gorean.org on Thu, Mar 30, 2000 at 08:28:55PM -0800 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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