-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
awk: 1: unexpected character '\' #2
Comments
你说的应该是 在 bash 中直接执行 |
直接执行脚本也需要这么改呀,,, |
哈哈 我这里是通过 pwsh 里调用 所以要让这里的 |
貌似我又发现一个神奇的问题,wsl.local在宿主只能ping通,这功能我是想着转发kubernetes dashboard,然后:
我将这个地址换成wsl.local访问不了,ip也不行,但wsl2内能访问。是否还缺一个设置? |
wsl2 能访问是因为它会向主机查询 dns(因为 nameserver 指向了 windows 主机),主机会把 hosts 中的域名直接缓存起来然后直接作为一个 dns 记录。 docker 可能不走这个设置,可能需要手动设置一下 dns 的地址为主机(我没试过).... |
谢谢,我再看看 |
环境 win10 2004 (19041.610),wsl2,系统自带bash
执行后报错:
测试后发现awk语法可能有点问题,bash测试执行结果:
The text was updated successfully, but these errors were encountered: