猿问

How can I escape the equal sign in alias?

WhenIinput
aliasdocker-compose-build=docker-composebuild--build-arg"http_proxy=my-proxy"--build-arg"https_proxy=my-proxy"$*
I'mexpecting
docker-compose-build=docker-composebuild--build-arg"http_proxy=my-proxy"--build-arg"https_proxy=my-proxy"$*
But,itcomesto
docker-compose-build=docker-composebuild--build-arg"http_proxymy-proxy"--build-arg"https_proxymy-proxy"$*
HowcanIescapetheequalsign?
慕雪6442864
浏览 391回答 2
2回答

子衿沉夜

直接修改cmder/config/user-aliases.cmd文件最后加一行:docker-compose-build=docker-composebuild--build-arg"http_proxy=my-proxy"--build-arg"https_proxy=my-proxy"$*

慕姐8265434

"http_proxy=my-proxy"==>"http_proxy\=my-proxy"或'http_proxy=my-proxy'
随时随地看视频慕课网APP

相关分类

JavaScript
我要回答