[PLUG] a question on "mv" command
Paul Heinlein
heinlein at madboa.com
Wed Oct 4 14:16:23 UTC 2017
On Tue, 3 Oct 2017, VY wrote:
> Thanks again for all the replies.
>
> I have a further question on this.
>
> Is doing "mv *" considered "bad coding"?
>
> In general, no matter which language I do, I try to avoid any
> side-effect.
It's certainly nothing I would do on purpose. :-) For instance, here
are two views of the exact same directory:
[heinlein at hub mvtest]$ ls
A/ C/ E/ b/ d/
[heinlein at hub mvtest]$ ls
A/ b/ C/ d/ E/
The difference is in the LC_COLLATE locale variable ('C' in the first
list, 'en_US.UTF-8' in the second). Obviously, "mv *" would not behave
the same in those two cases. Everything would end up in 'd' in the
first case, in 'E' in the second.
--
Paul Heinlein
heinlein at madboa.com
45°38' N, 122°6' W
More information about the PLUG
mailing list