Tiny Core Extensions > TCE Bugs
cliorx: wrong quoting
(1/1)
yiyus:
Arguments are not passed correctly in cliorx. For example, this fails:
--- Code: ---cliorx sh -c 'cmd1; cmd2 && cmd3'
--- End code ---
In this case, "cmd1;", "cmd2", "&" and "cmd3" are passed as different arguments to sh.
The solution is easy. Just use quotes in cliorx:
--- Code: ---[ "$DISPLAY" ] && /usr/local/bin/xterm -e "$@" || "$@"
--- End code ---
Thank you!
curaga:
Added, thanks!
jls:
Hi. There isn't a terminal variable? I think it was discussed in the past without solution.
curaga:
IIRC the xterm is a symlink to your chosen terminal, not actual xterm.
Navigation
[0] Message Index
Go to full version