Main Area and Open Discussion > Non-Windows Software
Yad - Yet Another Dialog
ewemoa:
Thanks -- that runs but I get the following error as well after specifying something to run and clicking the 'OK' button:
run-dialog.sh: line 15: [-z: command not found
--- End quote ---
For values to execute, I tried 'virtualbox' as well as 'palemoon' with similar results. To be clearer, both programs start up -- I also see error the 'command not found' result output quoted above.
FWIW, changing line 15 so that there's a space between the first character '[' and the second character '-' seemed to silence the error output.
Edvard:
Ah, yes, I was about to point that out, "[" is an alias for the "test" command that requires a closing "]" and so requires a space between it and it's argument.
Check it out: "man [" brings up the man page for "test", so:
if test -e /usr/bin/man; then echo "yes"; fi
is the same as:
if [ -e /usr/bin/man ]; then echo "yes"; fi
That same error has totally boggled me a few times in the past, and I swore I would never repeat it. :wallbash:
ewemoa:
Ah, yes, I was about to point that out, "[" is an alias for the "test" command that requires a closing "]" and so requires a space between it and it's argument.
-Edvard (May 03, 2014, 04:52 PM)
--- End quote ---
Those sneaky *NIX wizards!
Navigation
[0] Message Index
[*] Previous page
Go to full version