New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(msys) perl readline creates sys$command files w/o STDIN connected #12614
Comments
From sven.strickroth@tu-clausthal.de
Perl readline creates "sys$command" files when no STDIN is connected to I noticed this issue on using msysgit with TortoiseGit. I tracked down -- |
From sven.strickroth@tu-clausthal.dereadline-fix.patch--- "a/ReadLine.pm"
+++ "b/ReadLine.pm"
@@ -214,7 +214,7 @@ sub findConsole {
$console = "Dev:Console";
} elsif (-e "/dev/tty") {
$console = "/dev/tty";
- } elsif (-e "con" or $^O eq 'MSWin32') {
+ } elsif (-e "con" or $^O eq 'MSWin32' or $^O eq 'msys') {
$console = "con";
} else {
$console = "sys\$command";
|
From @craigberryOn Sat, Nov 24, 2012 at 12:26 PM, Sven Strickroth
Thanks, I've applied your patch (manually, as GNU patch couldn't parse it) as: <http://perl5.git.perl.org/perl.git/commitdiff/0a616d17c63ccea3e07a9370becf1d236ce89558> Then I went a bit further and did: commit c0788ef Rational findConsole dispatch for Term::ReadLine. Back in 5.002 or so, if we didn't find /dev/tty and weren't on Later accretions have assumed that the sys$command default meant That can all be avoided by simply checking we're on VMS before diff --git a/dist/Term-ReadLine/lib/Term/ReadLine.pm $consoleOUT = $console unless defined $consoleOUT; So I think the ticket can be closed. This is unlikely to make it into |
The RT System itself - Status changed from 'new' to 'open' |
From email@cs-ware.deOn So. 25. Nov. 2012, 08:16:12, craig.a.berry@gmail.com wrote:
Works for me. Sven |
@cpansprout - Status changed from 'open' to 'resolved' |
From sven.strickroth@tu-clausthal.deAm 25.11.2012 17:16 schrieb Craig Berry via RT:
Works for me. -- |
Migrated from rt.perl.org#115900 (status was 'resolved')
Searchable as RT115900$
The text was updated successfully, but these errors were encountered: