[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FDclone-users:00281] Re: wildcard expansion problem
- Subject: [FDclone-users:00281] Re: wildcard expansion problem
- From: "Akinori MUSHA" <knu@iDaemons.org>
- Date: Tue, 25 May 2004 18:57:04 +0900
この一連の修正を当てたところ、エスケープのないグロブの展開が
おかしくなりました。頭にワイルドカードがあってその後にスラッシュが
現れるときの挙動が変です。
$ mkdir foo
$ echo */
*/
とか、
$ cd
$ echo ?in
bin din
$ echo ?in/*
bin/[ bin/cat bin/chflags bin/chio bin/chmod bin/cp bin/csh bin/date bin/dd bin/df bin/domainname bin/echo bin/ed bin/expr bin/getfacl bin/hostname bin/kenv bin/kill bin/link bin/ln bin/ls bin/mkdir bin/mv bin/pax bin/ps bin/pwd bin/rcp bin/realpath bin/red bin/rm bin/rmail bin/rmdir bin/setfacl bin/sh bin/sleep bin/stty bin/sync bin/tcsh bin/test bin/unlink
など。「?in」の方は正しいが、「?in/*」の方はなぜか / の下を見に
行っています。「?in」の部分を「*」にしても同様です。
FreeBSD port にパッチを追加してから気づいた... 戻さねば ;-)
--
/
/__ __ Akinori.org / MUSHA.org
/ ) ) ) ) / FreeBSD.org / Ruby-lang.org
Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp
"It seems to me as we make our own few circles 'round the sun
We get it backwards and our seven years go by like one"