You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
__go_to_window_or_session_path() is clobbering the command supplied to new_window. The cd and clear commands being run in this function are run after the window command.
For example, consider the following line in mysession.session.sh, which creates a window that runs re.pl, a Perl REPL:
new_window "repl" re.pl
And the resultant window:
cd "/home/zeroknight/Projects/blah"
clear
$ String found where operator expected at (eval 324) line 5, near "cd "/home/zeroknight/Projects/blah""
(Do you need to predeclare cd?)
Compile error: syntax error at (eval 324) line 5, near "cd "/home/zeroknight/Projects/blah""
BEGIN not safe after errors--compilation aborted at (eval 324) line 5, <FIN> line 1.
$ Compile error: Bareword "clear" not allowed while "strict subs" in use at (eval 325) line 5, <FIN> line 2.
$
As you can see, the two run_cmd bits are being run inside the REPL, rather than in the shell before the REPL is launched. Perhaps this is related to #80?
The text was updated successfully, but these errors were encountered:
Hmm, this doesn't seem right indeed. Off the top of my head the command is supposed to run after the window had been created and changed into the correct folder. But seems like I've screwed that up.
__go_to_window_or_session_path()
is clobbering the command supplied tonew_window
. Thecd
andclear
commands being run in this function are run after the window command.For example, consider the following line in
mysession.session.sh
, which creates a window that runsre.pl
, a Perl REPL:And the resultant window:
As you can see, the two
run_cmd
bits are being run inside the REPL, rather than in the shell before the REPL is launched. Perhaps this is related to #80?The text was updated successfully, but these errors were encountered: