Menu

#87 -e switch treats string as single argument

Next_release
closed
nobody
None
1
2013-04-14
2012-10-06
4javier
No

-e switch treats arguments passed surrounded by quote as a single string, although they are different commands. This break compatibility with geany execute function.
In fact, to execute on-the-fly a script with an external terminal emulator, geany passes
-e "/bin/sh ./geany_run_script.sh"
as arguments to the preferred emulator. Roxterm complains about the absence of child process "/bin/sh ./geany_run_script.sh", while xterm works flawlessy. Gnome-terminal has two options: -e that accept a string and tokenize it, and -x that parse the arguments separately. This could be a solution.

Discussion

  • Tony Houghton

    Tony Houghton - 2012-10-07

    The way I'd like to fix this is to keep the current behaviour if there is more than one argument following -e but make it split at spaces if there is only one.

     
  • 4javier

    4javier - 2012-10-07

    I think that have sense. If somebody explicitly has surrounded different token by quote, it's beacuase he needs they will be parsed that way. Otherwise, if a single parameter passed is quoted, probably it's just to avoid problem with programs which don't like blank spaces.
    Thanks again for your interest. I'll wait for the commit. :)

     
  • Tony Houghton

    Tony Houghton - 2013-02-27

    I've implemented this and pushed it to git. I'm aiming for a new release in the next few days.

     
  • Tony Houghton

    Tony Houghton - 2013-03-01
    • milestone: v1.0_(example) --> Next_release
     
  • 4javier

    4javier - 2013-04-14

    Just tried git version: it works as expected. Thanks a lot. :)
    P.S.
    Great thing the add tab button too. I would like to ask for that some times ago.
    Cheers.

     
  • Tony Houghton

    Tony Houghton - 2013-04-14
    • status: open --> closed
     

Anonymous
Anonymous

Add attachments
Cancel