|
From: | Ngô Huy |
Subject: | Re: mkdir and ls display |
Date: | Mon, 9 Nov 2015 21:54:03 +0700 |
On 09/11/15 08:30, Ngô Huy wrote:
> Dear guys,
>
> I had problem with mkdir and ls when I used command:
>
> mkdir "* /" && mkdir "* /etc" && ls.
>
> It only displayed *.
Note as yet unreleased version of ls will use shell quoting
to give a less ambiguous output:
$ ls
'* '
> But
>
> find . -type d -print
>
> display ./* /etc.
>
> If we have hidden directory and use xargs with find to execute some command, it's security risk. Should we patch it's behavior ?
I think you're worried about the '*' being expanded?
Or maybe the xargs splitting on the space.
In any case you can use `find ... -print0 | xargs -0`
to handle that.
Not something that mkdir (coreutils) should be worried
about in any case.
cheers,
Pádraig.
[Prev in Thread] | Current Thread | [Next in Thread] |