Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Shell style line-editing without benefit of CPAN modules

by SirBones (Friar)
on Nov 20, 2006 at 01:57 UTC ( #584993=note: print w/ replies, xml ) Need Help??


in reply to Re: Shell style line-editing without benefit of CPAN modules
in thread Shell style line-editing without benefit of CPAN modules

(As my darling 16 YO daughter would say): O M G

Thanks so much; that seems to get me most of the way there. If yer weren't so Anonymous, I'd give ya a big ol hug. :-)

Not to be greedy (always spoken before one gets greedy): I note that this only returns a "history" of the last command entered, at least on the two systems where I tried it. Is there a way to get it to save/scroll a full history list? (As I diligently go back and read the Bash Reference Manual...)

Most appreciative,

-Ken

"This bounty hunter is my kind of scum: Fearless and inventive." --J.T. Hutt


Comment on Re^2: Shell style line-editing without benefit of CPAN modules
Re^3: Shell style line-editing without benefit of CPAN modules
by zengargoyle (Deacon) on Dec 07, 2006 at 20:30 UTC

    really? on my bash: BASH_VERSION='3.1.16(1)-release', the above code does keep the the full history of the commands, not just the last command. (that was the hardest part of writing it :) ).

    and i believe that there is probably a way to set a .history file so that it would keep commands between sessions.

    anyway, good luck digging through the bash manpages. i hope you can get it to work "well enough" for your needs. it's probably just one of the bash 'set' options or an environment variable that you need set correctly to make the history work.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://584993]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (6)
As of 2014-07-12 10:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (239 votes), past polls