[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[FDclone-users:00271] Re: wildcard expansion problem
- Subject: [FDclone-users:00271] Re: wildcard expansion problem
- From: "Akinori MUSHA" <knu@iDaemons.org>
- Date: Sat, 22 May 2004 06:00:22 +0900
At Fri, 21 May 2004 01:16:07 +0900,
Takashi SHIRAI wrote:
> んー、これは parse の順番を考え直さないと対処出来ませんね。
> wild card の展開を内部実装のみで完結すると割と楽に実現出来る
> のですが、regcomp() や re_comp() という選択肢も一応用意して
> あるので、そっちを選んだ時の対処が厄介そうです。
> 環境によっては、そういう正規表現 library を使った方が賢い
> 場合もあるので、なかなか簡単には捨てられない選択肢です。
ご本人以外はいじれない気がするので、お任せします。 :)
> > 2.05d を使っていて気づきましたが、手元にあるいちばん古い版である
> > 2.04a でも同様でした。
>
> 多分初期の実装からずっとそうだと思います。wild card のある
> directory 要素のみ quote 処理してますから。
> 正規表現 library の種類によっては、_NOORIGGROB を使った場
> 合の挙動が期待通りにならないかも知れませんが、取り敢えずはこ
> んな感じの対処でどうでしょうか?
/usr\/* と "/usr/"* はうまく行きましたが、 '/usr/'* は展開
されませんでした。もう少し。
--
/
/__ __ 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"