thanks for all the reply.  I hate code with side-effects too.  Hence, I
could not tell what "mv *" would do.
but it was a discussion with a co-worker and he likes this kind of tricks.
:)


On Wed, Oct 4, 2017 at 7:16 AM, Paul Heinlein <heinl...@madboa.com> wrote:

> 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@hub mvtest]$ ls
> A/  C/  E/  b/  d/
>
> [heinlein@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
> heinl...@madboa.com
> 45°38' N, 122°6' W
>
> _______________________________________________
> PLUG mailing list
> PLUG@lists.pdxlinux.org
> http://lists.pdxlinux.org/mailman/listinfo/plug
>
>
_______________________________________________
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to