Skip to content

Commit 047ba4d

Browse files
committed
update doco for pwsh
1 parent a35425a commit 047ba4d

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -245,7 +245,7 @@ All other instance methods will return false
245245

246246
my $shell = Shell::Guess->power_shell;
247247

248-
Returns an instance of Shell::Guess for Windows PowerShell.
248+
Returns an instance of Shell::Guess for Microsoft PowerShell (either for Windows `powershell.exe` or Unix `pwsh`).
249249

250250
The following instance methods will return:
251251

@@ -375,7 +375,7 @@ Returns true if the shell is traditionally an OpenVMS shell (e.g. dcl)
375375

376376
my $bool = $shell->is_win32;
377377

378-
Returns true if the shell is traditionally a Windows shell (command.com, cmd.exe)
378+
Returns true if the shell is traditionally a Windows shell (command.com, cmd.exe, powershell.exe, pwsh)
379379

380380
## is\_z
381381

author.yml

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ pod_spelling_system:
1313
- cmd
1414
- tc
1515
- PowerShell
16+
- powershell
17+
- pwsh
1618
- prereqs
1719
- FreeBSD
1820
- ps

lib/Shell/Guess.pm

+2-2
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ sub korn_shell { bless { korn => 1, bourne => 1, unix => 1, name => 'korn', defa
449449
450450
my $shell = Shell::Guess->power_shell;
451451
452-
Returns an instance of Shell::Guess for Windows PowerShell.
452+
Returns an instance of Shell::Guess for Microsoft PowerShell (either for Windows C<powershell.exe> or Unix C<pwsh>).
453453
454454
The following instance methods will return:
455455
@@ -613,7 +613,7 @@ Returns true if the shell is traditionally an OpenVMS shell (e.g. dcl)
613613
614614
my $bool = $shell->is_win32;
615615
616-
Returns true if the shell is traditionally a Windows shell (command.com, cmd.exe)
616+
Returns true if the shell is traditionally a Windows shell (command.com, cmd.exe, powershell.exe, pwsh)
617617
618618
=head2 is_z
619619

0 commit comments

Comments
 (0)