Tiny Core Linux

Tiny Core Extensions => TCE Bugs => Topic started by: yiyus on October 25, 2015, 02:03:13 PM

Title: cliorx: wrong quoting
Post by: yiyus on October 25, 2015, 02:03:13 PM
Arguments are not passed correctly in cliorx. For example, this fails:
Code: [Select]
cliorx sh -c 'cmd1; cmd2 && cmd3'
In this case, "cmd1;", "cmd2", "&" and "cmd3" are passed as different arguments to sh.

The solution is easy. Just use quotes in cliorx:
Code: [Select]
[ "$DISPLAY" ] && /usr/local/bin/xterm -e "$@" || "$@"
Thank you!
Title: Re: cliorx: wrong quoting
Post by: curaga on October 25, 2015, 04:55:09 PM
Added, thanks!
Title: Re: cliorx: wrong quoting
Post by: jls on October 25, 2015, 05:32:52 PM
Hi. There isn't a terminal variable? I think it was discussed in the past without solution.
Title: Re: cliorx: wrong quoting
Post by: curaga on October 26, 2015, 04:36:08 AM
IIRC the xterm is a symlink to your chosen terminal, not actual xterm.