[FZH] 问个basename命令的问题

dword zhangchi866 at gmail.com
Wed Jun 8 02:08:01 UTC 2011


在 2011年6月8日 星期三 08:57:52,xie yunpeng 写道:
> 这两天看一个开源项目的congfigure文件里面发现里面在用basename的时候不是直接 basename $path,而是basename --
> /或者basename -- $path这样来用,不知道这个--放在这有什么用

防止把带“-”的$path认成选项。“--”表示此后的字串全部不是选项。
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://lists.fedoraproject.org/pipermail/chinese/attachments/20110608/62fcde39/attachment-0001.bin 


More information about the Chinese mailing list