以下のように、echoならちゃんと出力されるけど、パスとしてコマンドに含めると、正しく展開されません。
bash --version GNU bash, version 4.3.48(1)-release (x86_64-pc-linux-gnu) yuis@DESKTOP-PS5DVT5:/mnt/c/pg/autohotkey$ AHKPATH="/mnt/c/Program Files/AutoHotkey/AutoHotkeyU64.exe" yuis@DESKTOP-PS5DVT5:/mnt/c/pg/autohotkey$ echo $AHKPATH /mnt/c/Program Files/AutoHotkey/AutoHotkeyU64.exe yuis@DESKTOP-PS5DVT5:/mnt/c/pg/autohotkey$ $AHKPATH dev.ahk -bash: /mnt/c/Program: No such file or directory
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2018/05/16 16:54