[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[ale] history command in script


I had a tiny script:


echo "Do you want the full argument or just the base command?"
read answer

if echo $answer | grep -i y ; then
   history 1000 | tr -s " " | cut -d " " -f3- | sort | uniq -c |sort -r | less
   history 1000 | cut -d' ' -f5 | sort | uniq -c | sort -r | less

But "history" doesn't seem to get executed.  Is that because it's
a builtin?  Why should that make a difference?  Is there another
reason why "history" doesn't get executed?


David S. Jackson                        dsj at dsj.net
For my birthday I got a humidifier and a
de-humidifier...  I put them in the same room and
let them fight it out.  -- Steven Wright

This message has been sent through the ALE general discussion list.
See http://www.ale.org/mailing-lists.shtml for more info. Problems should be 
sent to listmaster at ale dot org.