Glob error?
Paul A. Procacci
pprocacci at datapipe.com
Fri Nov 7 17:19:44 PST 2008
Steve Watt 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/
> %
>
> System is:
> FreeBSD wattres.Watt.COM 6.3-STABLE FreeBSD 6.3-STABLE #9: Tue May 13 16:06:34 PDT 2008 root at wattres.Watt.COM:/usr/obj/usr/src/sys/WATTRES i386
>
> Source was probably updated a few hours before the kernel build time.
>
> Shell doesn't seem to matter (have tried both tcsh and bash).
>
> My cygwin installation seems to get it right.
>
> Known issue? A quick glance for "glob" in gnats didn't show anything promising.
>
I too can't reproduce this on any of my machines:
nat# mkdir -p {a,b,c}/dir/{cur,new}
nat# ls -ld */dir/*
drwxr-xr-x 2 root wheel 512 Nov 7 19:07 a/dir/cur
drwxr-xr-x 2 root wheel 512 Nov 7 19:07 a/dir/new
drwxr-xr-x 2 root wheel 512 Nov 7 19:07 b/dir/cur
drwxr-xr-x 2 root wheel 512 Nov 7 19:07 b/dir/new
drwxr-xr-x 2 root wheel 512 Nov 7 19:07 c/dir/cur
drwxr-xr-x 2 root wheel 512 Nov 7 19:07 c/dir/new
Awefully strange indeed.
More information about the freebsd-questions
mailing list