bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

extglob pattern: @(/root) vs. @(root)


From: Clark J. Wang
Subject: extglob pattern: @(/root) vs. @(root)
Date: Fri, 9 Dec 2011 16:16:25 +0800

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 why @(/root) and @(/root*) do not work here.

-- 
-Clark


reply via email to

[Prev in Thread] Current Thread [Next in Thread]