Re: `history` cmd from within a bash or sh script?

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Chris Gehlker
Date:  
To: plug-discuss
Subject: Re: `history` cmd from within a bash or sh script?
On Feb 27, 2004, at 2:01 PM, Jeremy C. Reed wrote:

> Your email said using /bin/sh. It indicated history was really using
> fc. I
> guess your history command is an alias to "fc -l".


My version of 'sh' works like that.
>
> What /bin/sh is this?


/bin/zsh version 4.1.1


> I have never heard of a real /bin/sh that supports history that is
> saved
> in a file. In other words, the history is only in memory for that
> process.


I haven't either but I have encountered systems where /bin/sh was just
a link to zsh. Mac OS worked like that before Panther. I believe that
zsh is a strict superset of 'real sh' there really isn't a problem with
doing that.

---------------------------------------------------
PLUG-discuss mailing list -
To subscribe, unsubscribe, or to change you mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss