RE: CPAN module - cmd history

2003-02-10 Thread Michael Hooten
perldoc CPAN
[snip]

The interactive mode is entered by running

   perl -MCPAN -e shell

which puts you into a readline interface. You will have the most fun if you
install Term::ReadKey and Term::ReadLine to enjoy both history and command
completion.


-Original Message-
From: Harry Putnam [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 09, 2003 2:48 PM
To: [EMAIL PROTECTED]
Subject: Re: CPAN module - cmd history


Jenda Krynicky [EMAIL PROTECTED] writes:

 Tell us what OS do you have and someone will be able to give some
 more details.

Yeah, sorry.  OS is linux (Redhat 8).  I have both Term::ReadLine
(which is part of 5.8.0 I think and Term::ReadLine::Gnu which isn't.

I have newest CPAN-1.65 installed.
In addition:
 rpm -qa|grep -i readline
  readline-4.3-3
  readline-devel-4.3-3





-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CPAN module - cmd history

2003-02-10 Thread Harry Putnam
Michael Hooten [EMAIL PROTECTED] writes:

 perldoc CPAN
 [snip]

 The interactive mode is entered by running

perl -MCPAN -e shell

I'm not having a problem entering the interactive shell.  I just
don't have cmd hist when I get in it.

 which puts you into a readline interface. You will have the most fun if you
 install Term::ReadKey and Term::ReadLine to enjoy both history and command
 completion.

Well, apparently there is something more to it, since as I mentioned
in the post you quoted, I have Term::ReadLine, Term::ReadLine::Gnu
and the latest CPAN shell 1.65 as well as OS readline libraries yet I
get no cmdline history in CPAN shell.

Is Term::ReadKey a requirememt for command line history?
Thats the first I've heard it mentioned .  I do have it installed
anyway but still no history.

How can I debug this? Are there env settings that can muck it up?
Is it supposed to just work when I call perl -MCPAN -e shell.

I've been running a cpan shell for a year or two on occasion,and have
yet to get a command line history.  Must be something I have locally
that is dorking it up.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CPAN module - cmd history

2003-02-09 Thread Jenda Krynicky
From: Harry Putnam [EMAIL PROTECTED]

 Should I have a cmd history with the current CPAN module?
 
 If it is something I can setup.  Can someone explain how?

Yes you should, but it may depend on your OS.

Under WinNT/2k/XP it's the console that provides the history, under 
Win9x you need to load doskey.exe (if I remember right), under Unix 
the CPAN should load Term::Readline which should provide this.

Tell us what OS do you have and someone will be able to give some 
more details.

Jenda
= [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
When it comes to wine, women and song, wizards are allowed 
to get drunk and croon as much as they like.
-- Terry Pratchett in Sourcery


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: CPAN module - cmd history

2003-02-09 Thread Harry Putnam
Jenda Krynicky [EMAIL PROTECTED] writes:

 Tell us what OS do you have and someone will be able to give some 
 more details.

Yeah, sorry.  OS is linux (Redhat 8).  I have both Term::ReadLine
(which is part of 5.8.0 I think and Term::ReadLine::Gnu which isn't.

I have newest CPAN-1.65 installed.
In addition:
 rpm -qa|grep -i readline
  readline-4.3-3
  readline-devel-4.3-3



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]