I did the following:
git clone
https://github.com/Pash-Project/Pash.gitcd Pash
xbuild
echo 'mono ~/Pash/Source/PashConsole/bin/Debug/Pash.exe "$@"' > /usr/local/bin/pash
chmod +x /usr/local/bin/pash
Then in my script, such as this one I have:
#!/usr/bin/env pash
Write-Host Hello
Running this script causes:
$./hello.ps1
Command '/a00.output.ps1' not found.
+CategoryInfo: ObjectNotFound, Reason: ParentContainsErrorRecordException
+FullyQualifiedErrorId: CommandNotFoundException
I can successfully run this scripting doing
$ pash hello.ps1
Any recommended way of supporting she-bang?