bug#6353: cp and mv with single wild card argument acts as if multiple arguments were entered.

2010-06-04 Thread Davide Brini
On Friday 04 June 2010, Darwin Gregory wrote: > If you execute "cp /path/*" the command expands the wildcard, and treats > the last file as the destination directory. If the last file in /path/ is > not a directory the command fails, but not with the appropriate error. > However, if the last

bug#6353: cp and mv with single wild card argument acts as if multiple arguments were entered.

2010-06-04 Thread Bob Proulx
Darwin Gregory wrote: > I did a quick search of the archive, and didn't find this one, It gets discussed every so often. Look for file glob or file globbing. > but there seems to be a potential logical failure in the cp and mv > commands. It may be specific to an implementation, but I feel it i

bug#6353: cp and mv with single wild card argument acts as if multiple arguments were entered.

2010-06-04 Thread Eric Blake
On 06/04/2010 10:13 AM, Darwin Gregory wrote: > I did a quick search of the archive, and didn't find this one, but there > seems to be a potential logical failure in the cp and mv commands. It may > be specific to an implementation, but I feel it is a critical issue. It is generic to how Unix wor

bug#6353: cp and mv with single wild card argument acts as if multiple arguments were entered.

2010-06-04 Thread Alfred M. Szmidt
If you execute "cp /path/*" the command expands the wildcard, and treats the last file as the destination directory. That is at it should be, * is expanded by the shell, not by the command.

bug#6353: cp and mv with single wild card argument acts as if multiple arguments were entered.

2010-06-04 Thread Darwin Gregory
I did a quick search of the archive, and didn't find this one, but there seems to be a potential logical failure in the cp and mv commands. It may be specific to an implementation, but I feel it is a critical issue. I have tested this on Suse Enterprise 10.x and OpenSuse 11.x (the only implementa