Pash-Project / Pash

An Open Source reimplementation of Windows PowerShell, for Mono.
https://groups.google.com/group/pash-project
BSD 3-Clause "New" or "Revised" License
516 stars 54 forks source link

Run executable files form the current directory #409

Open ForNeVeR opened 8 years ago

ForNeVeR commented 8 years ago

Enter a directory with the executable file (for example, npm.cmd). After that, in PowerShell:

PS> npm.cmd
Command 'npm.cmd' cannot be found. # And here goes the suggestion about calling it as .\npm.cmd
PS> .\npm.cmd # or ./npm.cmd
# Command executes

In Pash:

Pash> npm.cmd
# Command executes
Pash> .\npm.cmd
Command '\npm.cmd' not found.
  +CategoryInfo: ObjectNotFound, Reason: ParentContainsErrorRecordException
  +FullyQualifiedErrorId: CommandNotFoundException

The exception generated at Pash\Source\System.Management\Pash\Implementation\CommandManager.cs:125.

Please note that we have an ignored test for a valid behavior.