I regularly use WinSCP to tranfer a few files to my personal server. However I recently experienced the infamous "bad packet length" error due to one of my echo statements residing inside the .bashrc file. Therefore with respect to this: sftp corruption error I would like to ask the following:
Why did the system complained for an echo statement (or whatever is causing the error) residing within my .bashrc file and not my .bash_profile instead?
..if the sftp is some sort of subprocess spawned by the ssh server as the above link suggests, shouldn't it first parse the .bash_profile file and complain about its own echo statements?
Thanks in advance