On Sat, Dec 14, 2019 at 09:03:26AM +0000, [email protected] wrote:
> Richard Ulmer writes:
> > Hi,
> > when there is a single ' in a comment within a subshell, I get this
> > error: foo[6]: no closing quote
> >
> > Here is an example script to reproduce the problem:
> >
> > foo=$(
> >     # It's bar:
> >     echo bar
> > )
> > echo $foo
> 
> This is certainly not the best way to do this but it does the job:
> 
> ~/src/ksh       [OpenBSD 6.6]
> [ksh]flask@void$ /bin/ksh
> void$ foo=$(
> >   # quote: '
> >   echo bar
> > )
> > ^D
I think a better way would be to use UTF-8 single
quote, For example codepoint 8217 ”RIGHT SINGLE
QUOTATION MARK”
foo=$(
        #It’s bar:
        echo bar
)
-- 
Nils Ola Nilsson, 🐞 email [email protected] 

Attachment: signature.asc
Description: PGP signature



Reply via email to