Topic "Remove file '* (asterisk)'"

Author Message
Tom7

Guest


Hi,

If we remove file with name '* (asterisk)' then all files in directory are removed.
Affected version 5.5.1.3970.

Regards,
Tom
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
How do you remove the file? In GUI or scripting? What protocol? Can you please provide more details? Can you attach a full log file showing the problem?
_________________
Martin Prikryl
Tom7

Guest


File was removed from GUI (protocol SCP).
Here is the log:
Code:
Deleting file "*".
rm -f -r "*" ; echo "WinSCP: this is end-of-file:$?"
WinSCP: this is end-of-file:0
Tom7

Guest


The target system is AIX.
Tom7

Guest


Problem is observed only on AIX version 5.3 (and maybe older). On new version file is removed correctly.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
The * in quotes should not work as mask. So I believe the problem is not on WinSCP side.

Quote from man page:

Quote:
One can remove the special meaning of '?', '*' and '[' by preceding
them by a backslash, or, in case this is part of a shell command line,
enclosing them in quotes
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License