Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 2
    Apart from the issue of quoting and the shell's interpretation of the strings that you pass into that argument for xterm, you also assign Running_In_New_Xterm in the (environment of xterm) the value of exec. Is that a typo? Commented Apr 21, 2018 at 19:23
  • I am executing xterm if the conditions aren't meant ( != t). I've tried it, and it works. It's just for some reason I'm having difficulty passing the $2 flags through another script, even when I put ' ' outside them i.e. '-a blah -o blah blah' Commented Apr 21, 2018 at 19:36
  • 1
    Well, yes, I can see that. I was just curious about Running_In_New_Xterm=exec. Commented Apr 21, 2018 at 19:37
  • There is no typos that I can see Commented Apr 21, 2018 at 20:08
  • -e "cd $3 && $1 $2" does not work? What is the exact resulting command line you want executed (as you would type it into a shell)? Commented Apr 22, 2018 at 16:40