Closed adamralph closed 8 years ago
Thanks @adamralph !
I've always run via the Windows Console
where the .ps1
file does not get resolved but rather the .cmd
. This was a subtlety that I had not even considered before.
A number of people who have been wanting to be able to run without issues in the PowerShell Console
will be very happy with this.
I've got a fix teed up for this.
I found a work around for passing arguments in powershell until the issue is resolved.
If you use two sets of "--", the arguments are passed correctly.
Thanks @ryanrousseau, good to know!
Fixed in bf28290314531074aef75ceb74e1b2bf10580e34 - finally getting around to releasing now. Thanks @adamralph and @ryanrousseau.
This is because
scriptcs
is resolving toscriptcs.ps1
and--
doesn't work with PowerShell because, er, it has some kind of special meaning?If I force use of the batch file
scriptcs.cmd .\ubs_export.csx -- export.csv
then it works just fine.I wonder if it may be better to call
scriptcs.ps1
something else, so that PS resolvesscriptcs
toscriptcs.cmd
?