我应该如何在powershell v1.0中正确终止'here string'?(How should I properly terminate a 'here stri

编程入门 行业动态 更新时间:2024-10-28 19:21:40
我应该如何在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.

更多推荐

本文发布于:2023-08-03 09:11:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1385335.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:正确   如何在   powershell   terminate   string

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!