1

I just figured out how to export settings from terminal which creates a .terminal file. And I realize that the ExecutionString parameter has changed to the CommandString parameter.

I put a command in the string tags and it worked but it jumped straight to [Process Completed] after it was done. Is there anyway to get it to give me a new prompt line for more commands?

  • Can't you start a new terminal window to enter commands? – At0mic Oct 9 '15 at 4:29
  • In the .terminal file, is the "RunCommandAsShell" value set to "<true/>" ? – Kent Oct 9 '15 at 5:38
  • @Kent that was it! I don't understand exactly what that does. Could you explain? – inthenameofmusik Oct 9 '15 at 15:42
  • I moved the expanded explanation in to the Answer section. – Kent Oct 13 '15 at 1:03
0

In the .terminal file, RunCommandAsShell should not be set to <true/>.

This correlates to the "Run inside shell" checkbox in the "Shell" section of the preference window; which is more intuitively named.

When the preference is not selected (RunCommandAsShell is true), then the default shell is replaced with whatever command you've used. If the preference is selected (RunCommandAsShell is either false or not listed in the .terminal file), then the command is run after the default shell is loaded for that Terminal window/tab.

  • thank you, this may seem like a silly question, but how can the command replace the default shell if RunCommandAsShell is true? Doesn't a command need a shell to run in? – inthenameofmusik Oct 13 '15 at 1:25
  • It's a pretty good question. As far as I understand it, a command doesn't need a shell but just a parent process. There are API hooks in OSX to allow a program to execute a unix command directly, and this is probably what Terminal is doing. Sorry if that doesn't completely answer your question, but if you want more information, I think that would be a good question to ask either here (for an apple-specific answer), or at Super User (for more general unix info). – Kent Oct 13 '15 at 1:58

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .