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.
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.