Skip to content
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

Changed -e and --command behavior #23

Closed
unreturnable opened this issue Aug 23, 2016 · 2 comments
Closed

Changed -e and --command behavior #23

unreturnable opened this issue Aug 23, 2016 · 2 comments
Labels

Comments

@unreturnable
Copy link

Running lxterminal on Fedora 23

In previous versions of lxterminal either of these were valid:

lxterminal -e "echo bob"
lxterminal --command "echo bob"

But now this is not possible with the quotations around the command to be run in the new terminal. It seems this is related to d1827de. While these flags can still be used to run commands other terminal emulators seem to accept quotations around the command being passed (tested in terminator and gnome-terminal) also since previous versions of lxterminal did support quotations changing this behavior may break peoples scripts.

@mtasaka
Copy link
Contributor

mtasaka commented Oct 13, 2016

Well, the behavior change was actually 0260cab , and d1827de is for the current behavoir to work properly.

Now $ lxterminal -e "echo bob" tries to execute the command "echo bob", which is probably not on your system. On the other hand, with current lxterminal -e behavior, it is easy to execute command name containing white space. With gnome-terminal, when you want to execute such command (with white space), you have to write something like: $ gnome-terminal -e "\"comamnd with white space\" -arg1 -arg2"

Note that with current lxterminal, $ lxterminal --command="echo bob" does the behavior you want.

@medicalwei
Copy link
Contributor

Thanks for the explanation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants