Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14179
| From | L A Walsh <bash@tlinx.org> |
|---|---|
| Newsgroups | gnu.bash.bug |
| Subject | Re: why is dash confused with underscore in autocompletion? |
| Date | 2018-05-30 15:58 -0700 |
| Message-ID | <mailman.835.1527721153.1292.bug-bash@gnu.org> (permalink) |
| References | <5B0DC703.9000203@tlinx.org> <74737bdd-031f-2b53-f5f4-1c98dfc581dc@redhat.com> <5B0DDF10.7060601@tlinx.org> <d8151be0-93e3-07a2-598e-b373a990da69@case.edu> |
Chet Ramey wrote:
> Linda: it's a readline option. It's off by default. You turned it on
> somewhere in your environment. If you don't like the behavior, find out
> where you enabled it and turn it off again.
>
---
I find the man page wrong or misleading w/r/t the map-case option:
If set to On, and completion-ignore-case is enabled, readline
treats hyphens (-) and underscores (_) as equivalent when per-
forming case-insensitive filename matching and completion.
readline does NOT treat hyphen and underscore as equivalent when
performing case-insensitive filename matching and completion.
I know, now, that the 'if' condition is meant to apply to the 2nd phrase
above, but it has a 'syntax error'. I'm pretty sure that the 2nd
phrase needs a subordinating 'then' before readline.
Otherwise the relation of the first 2 clauses (If..., and...,) is
unclear. I'm not sure where readline does 'matching' that isn't
part of completion (not saying it doesn't exist, just can't think
of any examples off hand).
I feel that paragraph would be more clear if its effects were
spelled out:
If set to On, readline adds the characters hyphen (-) and
underscore (_) as a case variation when doing case-insensitive
filename matching and completion. This mapping doesn't affect
bash's idea of case difference, for example, not in upper (-u)
and lower (-l) case variable declare's nor features affected by
the options 'nocaseglob' and 'nocasematch'.
Back to gnu.bash.bug | Previous | Next | Find similar | Unroll thread
Re: why is dash confused with underscore in autocompletion? L A Walsh <bash@tlinx.org> - 2018-05-30 15:58 -0700
csiph-web