Remove file '* (asterisk)'

Advertisement

Tom7
Guest

Remove file '* (asterisk)'

Hi,

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

Regards,
Tom

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: Remove file '* (asterisk)'

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?

Reply with quote

Tom7
Guest

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
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:

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

Reply with quote

Advertisement

You can post new topics in this forum