On Fri, Dec 9, 2011 at 20:12, Stephane CHAZELAS
wrote:
> 2011-12-9, 16:16(+08), Clark J. Wang:
> > See following:
> >
> > # shopt extglob
> > extglob on
> > # echo $BASH_VERSION
> > 4.2.20(1)-release
> > # ls -d /root
> > /root
> > # pwd
> > /
> > # echo @(root)
> > root
> > # echo @(/root
2011-12-9, 16:16(+08), Clark J. Wang:
> See following:
>
> # shopt extglob
> extglob on
> # echo $BASH_VERSION
> 4.2.20(1)-release
> # ls -d /root
> /root
> # pwd
> /
> # echo @(root)
> root
> # echo @(/root)
> @(/root) <-- ???
> # echo @(/root*)
> @(/root*) <-- ???
> #
>
> I'm confused w
On Fri, Dec 9, 2011 at 16:16, Clark J. Wang wrote:
> See following:
>
> # shopt extglob
> extglob on
> # echo $BASH_VERSION
> 4.2.20(1)-release
> # ls -d /root
> /root
> # pwd
> /
> # echo @(root)
> root
> # echo @(/root)
> @(/root) <-- ???
> # echo @(/root*)
> @(/root*) <-- ???
>
But