[FZH] 问个basename命令的问题

xie yunpeng woqimingweipeng at gmail.com
Wed Jun 8 03:04:29 UTC 2011


thx

在 2011年6月8日 上午10:08,dword <zhangchi866 at gmail.com>写道:

> 在 2011年6月8日 星期三 08:57:52,xie yunpeng 写道:
> > 这两天看一个开源项目的congfigure文件里面发现里面在用basename的时候不是直接 basename $path,而是basename
> --
> > /或者basename -- $path这样来用,不知道这个--放在这有什么用
>
> 防止把带“-”的$path认成选项。“--”表示此后的字串全部不是选项。
>
> _______________________________________________
> Chinese mailing list
> Chinese at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/chinese
>
>


More information about the Chinese mailing list