D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 9902 - The @cmdfile option is not available using PowerShell
Summary: The @cmdfile option is not available using PowerShell
Status: RESOLVED INVALID
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All Windows
: P2 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-04-07 19:31 UTC by Jesse Phillips
Modified: 2021-01-21 04:10 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Jesse Phillips 2013-04-07 19:31:51 UTC

    
Comment 1 Jesse Phillips 2013-04-07 19:33:45 UTC
Powershell uses the @ for "splatting" thus it can no longer be used for argument lists. Error below

"The splatting operator '@' cannot be used to reference variables in an
expression. '@xmlp' can be used only as an argument to a command. To reference"

Not sure what to do about it, but thought this would be best place for it.
Comment 2 safety0ff.bugz 2013-04-07 19:58:16 UTC
Can you use this: http://stackoverflow.com/a/5571703 ?
Comment 3 Jesse Phillips 2021-01-21 04:10:33 UTC
The workaround is probably accurate. I no longer use this approach to know if it would work in my use case.