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

$MyInvocation is not supported #415

Open ForNeVeR opened 8 years ago

ForNeVeR commented 8 years ago

User has reported in our maillist that $MyInvocation throws NotImplementedException.

I've tried to reproduce but just getting empty output instead. Here's my example script I'm testing:

echo 1 # To check if output works at all
echo $MyInvocation.MyCommand.Path # Should write current script name
echo $PSScriptRoot # Should write script directory