Topic "regression in 3.4.2 (build 197) with '~ ' at beggin of directory name"

Author Message
[View user's profile]

Joined: 2003-12-15
Posts: 1
This worked fine with winscp 3.3, but is broken in 3.4.2:

If a directory begins with a tilde and space (e.g. '~ upload'), then trying to descend into that directory will just take the use to their home directory.

I'm using ssh version 2, scp protocol, compression and 3des encryption. Here is part of the logfile that shows the problem (note that the directory I end up in is /home/joel, not the '~ upload' directory).

Directory content loaded from cache.
Changing directory to "~ upload".
cd ~ upload ; echo "WinSCP: this is end-of-file:$?"
WinSCP: this is end-of-file:0
Getting current directory name.
pwd ; echo "WinSCP: this is end-of-file:$?"
WinSCP: this is end-of-file:0
Directory content loaded from cache.

Thanks for your wonderful program--it totally rocks!

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24736
Location: Prague, Czechia
The problem was caused by fact that since 3.4.2, WinSCP down not add quotes around paths that begin with ~, to allow processing paths like ~prikryl (e.g. to open home directory of user prikryl). I may override this behaviour when second character is space, but I'm not sure, if this solves all possible cases. What do you think?
Martin Prikryl

You can post new topics in this forum

Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License