我正在尝试从 Windows 7 DOS shell 中动态创建一个 bash 命令文件:
:: inside the .BAT file ..
:: check we are in the right directory
echo pwd > command.txt
:: get the shell to echo its environment variables
:: !!!! How do I get around this ... ?
echo echo $PWD
我认为用 ^ (插入符号)作为第二个 echo 命令的前缀会起作用,但不行。解决办法是什么?