On Tue, 22 Nov 2011 14:27:31 -0600 Terry Brown <[email protected]> wrote:
> Popen(['xterm', '-e', '/bin/bash', '--login', '-c', 'pushd %s; bash'%path]) > > Neat use of pushd. Ok, that kept nagging at me, trying to work out why pushd was working - I don't think it needs to be pushd, cd would work, the bask invoked from within the first bash is just inheriting the current directory of the first bash. Also, /bin/sh should be a link to the users shell of choice, which might not be bash. dash is the new default for Ubuntu, although I always have to set it back to bash for some of my scripts. Cheers -Terry -- You received this message because you are subscribed to the Google Groups "leo-editor" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/leo-editor?hl=en.
