Windows vs Linux [was: p2exe using wine/cxoffice]

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed Oct 26 08:22:52 EDT 2005


Tim Golden wrote:
> As it happens, (and I suspect I'll have to don my flameproof suit
here),
> I prefer the Windows command line to bash/readline for day-to-day use,
> including in Python. Why? Because it does what I can't for the life of
> me get readline to do: you can type the first few letters of a
> previously-entered command and press F8. This brings up (going
backwards
>
> with further presses) the last command which starts like that. And
> *then*
> you can just down-arrow to retrieve the commands which followed it.
> If someone can tell me how to do this with bash/readline I will be
> indebted to them and it will increase my chances of switching to Linux
> a bit! (Although not at work where I have no choice!)

[bonono at gmail.com]
> But command line in Windows is in no way in the same
> league as *nix shell. Use <tab> for command completion and up/down
> arrow or <ctrl-R> to search for history.

[darren kirby]
> Try ctrl-r in bash, then type your first few letters...

Thanks to both of you. But that much I already knew. It's not
that I have *no* knowledge about readline: I did at least
read the manuals when I got stuck! But as far as I can tell
from my experience and from the docs -- and I'm not near a 
Linux box at the mo -- having used ctrl-r to recall line x 
in the history, you can't just down-arrow to recall x+1, x+2 etc. 
Or can you?

(Sorry guys; I realise this is more stuff for comp.os.linux or
comp.commandlineshells.bash or whatever it's called. But if
someone *did* know the answer, I'd be really happy!)

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________



More information about the Python-list mailing list