On Fri, Dec 9, 2011 at 16:16, Clark J. Wang <dearv...@gmail.com> 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 /@(root) and /@(root*) work: # echo /@(root) /root # echo /@(root*) /root # > # > > I'm confused why @(/root) and @(/root*) do not work here. > > -- > -Clark >