You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 4, 2019. It is now read-only.
What command line argument scheme should we use? Both PowerShell and bash have other useful switches aside -c, and the "default" mode for them is to treat the parameter as a filename.
Maybe Pash should follow the same convention? E.g. pash file.ps1 will execute a file (and nothing else), but pash -c "2 + 2" or even pash -c 2 + 2 should execute an inline command.
The text was updated successfully, but these errors were encountered:
With PowerShell (or even bash) I can execute commands as
powershell -Command "2 + 2"
orpowershell -c 2 + 2
.Pash introduces another convention without that
-c
option: justpash "2 + 2"
. Althoughpash 2 + 2
will not work:What command line argument scheme should we use? Both PowerShell and bash have other useful switches aside
-c
, and the "default" mode for them is to treat the parameter as a filename.Maybe Pash should follow the same convention? E.g.
pash file.ps1
will execute a file (and nothing else), butpash -c "2 + 2"
or evenpash -c 2 + 2
should execute an inline command.The text was updated successfully, but these errors were encountered: