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

$PSScriptRoot is not supported #416

Open ForNeVeR opened 8 years ago

ForNeVeR commented 8 years ago

Here's an example script:

echo $PSScriptRoot

It should output current script path if written to a file, but prints nothing instead.

It seems to be supported in Pash modules (although I haven't really checked it), but should be accessible to ordinary scripts also.