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: Jeremy C. Reed
Date:  
To: plug-discuss
Subject: Re: `history` cmd from within a bash or sh script?
Your email said using /bin/sh. It indicated history was really using fc. I
guess your history command is an alias to "fc -l".

What /bin/sh is this?

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.

If you customer used bash instead (or another shell that saved history to
a file), then you could just use that history (like .bash_history) file
instead. (But that may or may not be accurate or up-to-date.)

Jeremy C. Reed
http://www.reedmedia.net/

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