Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #11375

Re: Parameter Expansion: Case Modification: ${var~} not documented

From Dan Douglas <ormaaj@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Parameter Expansion: Case Modification: ${var~} not documented
Date 2015-08-18 12:43 -0500
Message-ID <mailman.8554.1439919804.904.bug-bash@gnu.org> (permalink)
References <CAO9HFd=EKGJ3KpuJtOcfWTn2F88ZFs=RUjjA9YF_rwJE9HY=gw@mail.gmail.com> <55D34377.9010305@case.edu> <CAO9HFdn4-e9-MSZWsYyPzArCUKuATfr3Xp7wj_WBKh9O-_V9AQ@mail.gmail.com>

Show all headers | View raw


On Tuesday, August 18, 2015 9:54:55 AM CDT Isaac Good wrote:
> Would you mind sharing the rational behind having it undocumented?

Since I like guessing: the syntax for parameter expansion operators is 
currently non-extensible, so the namespace of terse operators is in limited 
supply. New syntax should be extensible to suit future needs while keeping the 
language minimal. This is new syntax that adds one function that will be 
rarely used. I can think of better ways to use that operator.

The operators in use currently are already a disaster. We *really* could use a 
solution for the circumfix operators `!var[@]` and `!var[*]` that collide with 
the prefix `!` operator, and for reasons unknown don't interoperate with any 
of the other expansions such as array slicing / subscripting. I wouldn't want 
to add new (pointless) syntax before the fundamental problems are addressed.

-- 
Dan Douglas

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Parameter Expansion: Case Modification: ${var~} not documented Dan Douglas <ormaaj@gmail.com> - 2015-08-18 12:43 -0500

csiph-web