Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
您正在使用的 powershell 主机不支持写入主机。
一个简单的解决方法是更换:
Write-Host $currentScriptName Write-Host `r`nRuta: $scriptDir
经过:
$currentScriptName "`r`nRuta: $scriptDir"
我有一个关于在 shell 脚本中嵌入脚本文件的问题。我经常需要创建一个单独的 shell 脚本来解包其他脚本,但我真的不喜欢注释掉所有嵌入脚本的变量。我的 shell 脚本内容示例:
echo "Hello world" pwd cat>embedded_perl_script&l