Glob error?
Polytropon
freebsd at edvax.de
Fri Nov 7 16:02:12 PST 2008
On Fri, 7 Nov 2008 15:13:03 -0800, Steve Watt <steve at Watt.COM> wrote:
> ( Please cc: me on replies, as I can't keep up with traffic on -questions )
>
> I did the following:
>
> % cd /tmp
> % mkdir -p a/dir1/new a/dir1/cur
> % mkdir -p b/dir1/new b/dir1/cur
> % mkdir -p c/dir1/new c/dir1/cur
> % ls -ld */dir1/new
> drwxrwxr-x 2 steve wheel 512 Nov 7 15:10 a/dir1/new/
> %
Really strange... I did use C Shell on FreeBSD 7-STABLE.
% mkdir -p a/dir1/new a/dir1/cur
% mkdir -p b/dir1/new b/dir1/cur
% mkdir -p c/dir1/new c/dir1/cur
% ls -ld */dir1/new
drwxr-xr-x 2 poly staff 512 Nov 8 00:57 a/dir1/new/
drwxr-xr-x 2 poly staff 512 Nov 8 00:57 b/dir1/new/
drwxr-xr-x 2 poly staff 512 Nov 8 00:57 c/dir1/new/
> Shell doesn't seem to matter (have tried both tcsh and bash).
I did try BASH too, with same result as above - works. The calls
to mkdir and ls refer to programs, not to shell internal commands.
The only problem could be the * wildcard that the shell would
have to expand before calling the actual ls program...
--
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions
mailing list