逃避sh脚本?

cjm*_*671 1 bash sh

我的脚本中有以下行:

xrandr --newmode "$xx$y" $m
Run Code Online (Sandbox Code Playgroud)

where $x$y是整数,产生类似的输出1024x768.

不幸的是我的脚本正在解释$xas $xx- 如何阻止它并获得所需的行为?

Alb*_*gni 5

你可以尝试这样做

"${x}x$y"
Run Code Online (Sandbox Code Playgroud)

有关更多信息,请查看文档.