[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] Things like ${parameter^} only works with path expansion?
From: |
Peng Yu |
Subject: |
[Help-bash] Things like ${parameter^} only works with path expansion? |
Date: |
Sat, 11 Apr 2015 10:45:51 -0500 |
Hi,
The manual says things like ${parameter^} only works with path
expansion. I just want to make sure I understand it correctly. Pattern
Matching does not work here, right (as demonstrated by the following
example)?
parameter=abcABC123ABCabc
echo "${parameter,,@(abcABC123ABCabc|ABCABC123ABCABC)}"
Why this construct does not accept pattern matching, but things like
${var%%pattern} does? Is it better to make them consistent to avoid
confusions?
--
Regards,
Peng
- [Help-bash] Things like ${parameter^} only works with path expansion?,
Peng Yu <=
Re: [Help-bash] Things like ${parameter^} only works with path expansion?, Chet Ramey, 2015/04/11