From: Graham Knop Date: Sat, 23 Nov 2013 06:45:25 +0000 (-0500) Subject: be case insensitive checking for windows shells X-Git-Tag: v2.000_000~23 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=3c1de5966cff5c6c0323ecd04ecb81814b3e922c;p=p5sagit%2Flocal-lib.git be case insensitive checking for windows shells --- diff --git a/lib/local/lib.pm b/lib/local/lib.pm index 10e7cad..254fa45 100644 --- a/lib/local/lib.pm +++ b/lib/local/lib.pm @@ -577,12 +577,12 @@ sub guess_shelltype { for ($shellbin) { return - /csh/ ? 'csh' - : /command\.com/ ? 'cmd' - : /cmd\.exe/ ? 'cmd' - : /4nt\.exe/ ? 'cmd' - : /powershell\.exe/ ? 'powershell' - : 'bourne'; + /csh/ ? 'csh' + : /command\.com/i ? 'cmd' + : /cmd\.exe/i ? 'cmd' + : /4nt\.exe/i ? 'cmd' + : /powershell\.exe/i ? 'powershell' + : 'bourne'; } }