<address@hidden> writes:
> I noticed the following behavour in mv by accident today:
>
> $ ls
> file1 file2
>
> $ mv file*
> $ ls
> file2
>
>
> Here mv behaves as though I had issued 'mv file1 file2'
Which you did. Filename expansion happens in the shell.
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 Nürnberg
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."