bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Tilde (~) in bash(1) is typeset incorrectly as Unicode character


From: G. Branden Robinson
Subject: Re: Tilde (~) in bash(1) is typeset incorrectly as Unicode character
Date: Fri, 28 Jul 2023 14:28:07 -0500

Hi Chet,

At 2023-07-28T15:15:48-0400, Chet Ramey wrote:
> Applying the patch without any other changes to bash.1 results in
> 
> $ groff -Tascii -P -c -I/usr/local/src/bash/bash-20230728/doc -man
> /usr/local/src/bash/bash-20230728/doc/bash.1 > bash.0
> troff: /usr/local/src/bash/bash-20230728/doc/bash.1:26: warning: numeric
> expression expected (got a special character)
> 
> Where line 26 is the
> 
> .if \n(.g:(\(.f=0) \{\
> 
> test. This is macOS running groff-1.22.4 from MacPorts.

Sorry about that.  I fat-fingered it.

An 'n' is needed after the second backslash, because we're interpolating
a register value.

$ uname -a
Darwin gcc104.fsffrance.org 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 
20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101 arm64
$ groff --version | head -n 1
GNU groff version 1.19.2
$ cat <<EOF | groff -ww
> .if \n(.g:(\n(.f=0) .tm this is groff or mandoc
> EOF
this is groff or mandoc

No syntax goof and no warning here.  (-ww turns on _all_ warnings.)

\n(xx is 50-year-old syntax and supported by all *roffs.

I apologize for my clumsiness.

Regards,
Branden

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]