This solves the problem. Thank you!
- toshiki
Before posting, please read how to report bug or request support effectively.
Bug reports without an attached log file are usually useless.
export DONTCD=1
:
wt.exe ssh.exe !U@!@ -p !# -t "cd '!/' \; DONTCD=1 \; /bin/bash --login"
DONTCD
is undefined when .bashrc
is executed. If I echo $DONTCD
in .bashrc
, it's empty.
wt.exe ssh.exe !U@!@ -p !# -t "cd '!/' \; export DONTCD=1; /bin/bash --login"
.bashrc
don't do cd
, when the DONTCD
is set.
~/.bashrc
. I deleted the cd
command in .bashrc
and now it works. I guess this is the expected behavior?
.bashrc
. Now, I can get the desired behavior by changing my .bashrc
, but then I won't be in the directory I want when I don't use WinSCP. Is there a way to make it work without modifying bashrc? Or I wonder if I can modify .bashrc
in a way that distinguishes the two login scenario..
wt.exe ssh.exe !U@!@ -p !# -t "cd '!/' \; /bin/bash --login"
"C:\Users\Arsci\AppData\Local\Microsoft\WindowsApps\Microsoft.WindowsTerminalPreview_8wekyb3d8bbwe\wt.exe" -w 0 ssh.exe !U@!@ -p !# -t "cd '!/' \; /bin/bash --login"