Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #16849 > unrolled thread
| Started by | Bruce Lilly <bruce.lilly@gmail.com> |
|---|---|
| First post | 2020-08-29 15:01 -0400 |
| Last post | 2020-08-29 15:01 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Bash parameter expansion (remove largest trailing match, remove largest leading match, pattern replacement) does not work Bruce Lilly <bruce.lilly@gmail.com> - 2020-08-29 15:01 -0400
| From | Bruce Lilly <bruce.lilly@gmail.com> |
|---|---|
| Date | 2020-08-29 15:01 -0400 |
| Subject | Re: Bash parameter expansion (remove largest trailing match, remove largest leading match, pattern replacement) does not work |
| Message-ID | <mailman.1725.1598727733.2469.bug-bash@gnu.org> |
Thanks for the pointer to "shopt"; I'll check when I get a chance. On Sat, Aug 29, 2020, 14:52 Koichi Murase <myoga.murase@gmail.com> wrote: > 2020-08-29 23:47 Bruce Lilly <bruce.lilly@gmail.com>: > > Description: > > Bash parameter expansion (remove largest trailing match, > > remove largest leading match, pattern replacement) does not work > > In short, (1) ``octal escape \057'' doesn't have special meaning in > Bash glob patterns. `[\057]' means just one of a literal backslash or > digits 0, 5, or 7. (2) You need to set `shopt -s extglob` to use > extended glob patterns like `+(...)' and `*(...)'. Please look at the > paragraph above the list of extended patterns in the manual. > > -- > Koichi >
Back to top | Article view | gnu.bash.bug
csiph-web