uperl / Shell-Guess

make an educated guess about the shell in use
http://search.cpan.org/dist/Shell-Guess/
0 stars 2 forks source link

on MSYS thinks csh is tcsh #6

Open plicease opened 8 years ago

plicease commented 8 years ago
$ tcsh
> perl -MShell::Guess -MYAML= -E 'say Dump(Shell::Guess->running_shell)'
--- !!perl/hash:Shell::Guess
c: 1
default_location: /bin/csh
name: c
unix: 1
plicease commented 6 years ago

even worse:

For $^O eq 'MSWin32':

$ tcsh
> perl -MShell::Guess -MYAML= -E 'say Dump(Shell::Guess->running_shell)'
--- !!perl/hash:Shell::Guess
cmd: 1
default_location: C:\Windows\system32\cmd.exe
name: cmd
win32: 1
simbabque commented 6 years ago

I think I've got a fix for Linux. Creating a PR in a moment.

I can confirm the Windows problem with the tcsh.exe from ftp://ftp.astron.com/pub/tcsh/beta/. Not sure how to fix that though. There's nothing in %ENV.