[EMAIL PROTECTED] (Chris Wagner) writes:
> At 05:56 PM 6/18/2006 +0300, Octavian Rasnita wrote:
> >I have understood that the PPM shell will be removed but that we will still
> >be able to run ppm in command line mode, specifying all the parameters of
> >ppm directly in the DOS shell, like:
> >So it is OK, but the problem is that I am sure that in time, the shell
> >version won't be developed, but only the GUI one.
>
> I need to say that dropping the ppm shell is an extremely bad idea. Going
> to a GUI only shell (not counting cli) is going to screw everybody who has
> to administer or do development over a terminal connection.
Administration in a console/terminal window will certainly remain as
functional as the GUI.
The difference between having a PPM shell and issuing commands from
the OS shell is basically just that you can save typing "ppm " in
front of each command. If there is a strong demand for this shortcut
I'm sure it will come back very soon. Until then you might consider
this wrapper:
$ cat ppm-shell
#!/usr/bin/perl -w
use strict;
use Term::ReadLine ();
use Text::ParseWords qw(shellwords);
my $term = new Term::ReadLine 'PPM';
my $prompt = "ppm> ";
my $OUT = $term->OUT || \*STDOUT;
while ( defined ($_ = $term->readline($prompt)) ) {
last if /^(quit|exit)$/;
if (my @w = shellwords($_)) {
system("ppm", @w);
$term->addhistory($_);
}
}
print "\n";
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs