Re: shell 問題
※ 引述《nescafe.bbs@bbs.badcow.com.tw (☆★☆★☆★☆)》之銘言:
> 在o'reilly 的bash shell入門 第三版
> 書上說 [a-z] 代表 所有小寫字母
> 不過實際試過,它會符合所有大小寫的字母
> 是不是不該太相信wildcard expansion,由其在下 rm -f 指令時....
If you execute 'export LANG=C' then execute 'ls -d [a-z]'.
The result will be right.
This may be the bug of bash.
--
※ Origin: SayYA 資訊站 <bbs.sayya.org>
◆ From: 59-104-129-203.adsl.dynamic.seed.net.tw
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):