diff options
author | Zhiming Wang <zmwangx@gmail.com> | 2015-05-22 00:56:57 -0700 |
---|---|---|
committer | Zhiming Wang <zmwangx@gmail.com> | 2015-05-22 01:01:09 -0700 |
commit | 81d3143b0d6ef146a19087bd248b20d0b9e4a55b (patch) | |
tree | 044490db5eefa36c3207b30f47c598a0d5206bdd /source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md | |
parent | e43c335933be92a61d196a4c562e09e9fc85c3f3 (diff) | |
download | my_new_personal_website-81d3143b0d6ef146a19087bd248b20d0b9e4a55b.tar.xz my_new_personal_website-81d3143b0d6ef146a19087bd248b20d0b9e4a55b.zip |
20150522 Using a command table as wallpaper
And other minor changes.
Diffstat (limited to 'source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md')
-rw-r--r-- | source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md b/source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md index 0b2b0949..7e6c6e3a 100644 --- a/source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md +++ b/source/blog/2015-05-19-bash-the-special-slash-character-in-filename-expansion.md @@ -19,7 +19,7 @@ bash-4.3$ [[ /usr/bin == /usr@(/bin|/lib) ]] && echo matching matching ``` -As seen from this example, patterns with slash simply doesn't work (in filename expansion) when place in an extended glob pattern list, and there's no error whatsoever. I looked up the [Bash Reference Manual](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html#Pattern-Matching) and the [Bash Guide](http://mywiki.wooledge.org/BashGuide/Patterns) but neither mentioned this behavior. One might need to delve into the source code to say for sure what exactly is going on. +As seen from this example, patterns with slash simply doesn't work (in filename expansion) when placed in an extended glob pattern list, and there's no error whatsoever. I looked up the [Bash Reference Manual](https://www.gnu.org/software/bash/manual/html_node/Pattern-Matching.html#Pattern-Matching) and the [Bash Guide](http://mywiki.wooledge.org/BashGuide/Patterns) but neither mentioned this behavior. One might need to delve into the source code to say for sure what exactly is going on. In comparison, Zsh and its [docs](http://zsh.sourceforge.net/Doc/Release/Expansion.html#Filename-Generation) are much more up front about this issue: |