Hans-Bernhard Bröker via Cygwin wrote:
Am 04.07.2026 um 03:32 schrieb Annihilannic via Cygwin:
Firstly, why is =~ completely undocumented in the bash man page?  This question was my first encounter with the feature.

Because it's not --- not undocumented, that is.  Manpage search can't seem to find it, but it _is_ there.

Search for '\[\[ e' as the =~ is documented in the '[[ expression ]]' section.

The =~ cannot be found because GNU troff translates U+007E ("Tilde") into U+02DC ("Small Tilde"):

$ man bash | grep -c '=~'
troff:<standard input>:2073: warning: cannot select font 'CW'
...
troff:<standard input>:7242: warning: cannot select font 'CW'
0

$ zgrep -c '=~' /usr/share/man/man1/bash.1.gz
3

$ mman bash | grep -c '=~' # from package 'mandoc'
3


Using \[ti] instead would fix it, but may not be supported by all formatters (it works with mandoc):

$ man groff_man_style
...
    \[ti]  Basic  Latin  tilde.   Some output devices format “~” as U+02DC
           (small tilde).
...

--
Regards,
Christian


--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

Reply via email to