我应该如何在powershell v1.0中正确终止'here string'?(How should I properly terminate a 'here string' in powershell v1.0?)
我正在使用powershell v1.0并且在终止'here string'时遇到问题,控制台仍保持在>>,除非我执行CTRL-C,此时我丢失了变量:
$test = @" >> a >> multiline >> string >> "@ >>我应该如何在powershell v1.0中正确终止'here string'?
我也试过单引号'@无效。
I'm using powershell v1.0 and having a problem terminating a 'here string', the console remains on >> unless I do a CTRL-C at which point I lose the variable:
$test = @" >> a >> multiline >> string >> "@ >>How should I properly terminate a 'here string' in powershell v1.0?
I've also tried single quotes '@ to no avail.
最满意答案
看来你的问题中引号的错误一边是@。 在结束“@并结束之后,我能够几次点击返回键。
It seems you have the @ on the wrong side of the quotation mark in your question. I'm able to just hit the return key a couple of times after the ending "@ and it ends.
更多推荐
发布评论