“” quoting bug

Wed, 6 Jan 2016 13:02:37 EST
aiju@[REDACTED]

cpu% echo ‘a=b’ a=b cpu% “” echo

 cpu% echo 'a=b'

rc: line 2: token ‘=’: syntax error


discussion:

Date: Thu, 7 Jan 2016 08:58:02 -0800 From: Silas McCroskey
<inkswinc@[REDACTED]> To:
9front-bugs@[REDACTED] Subject: Re: [9front-bugs] “” quoting bug Reply-To:
9front-bugs@[REDACTED]

Somebody (_sl, I think) gave me a fix for this a while back, and it’s been working fine ever since.

; hg diff /rc/bin/“” diff -r f97691e4d2a3 rc/bin/“” —– a/rc/bin/“” Fri Dec 25 17:05:05 2015 +0100 +++ b/rc/bin/“” Thu Jan 07 16:37:27 2016 +0000 @@ -9,5 +9,5 @@ }

echo ‘ ’ $x –x={ echo -n 'eval '; echo $_x | sed 's/^'$PROMPT'//'} +_x={ echo -n ‘eval ’‘’; echo $x | sed ’s/^‘$PROMPT’//; s/‘’/‘’‘’/g; s/$/‘’/‘} rc -c $“x ;


Date: Thu, 7 Jan 2016 15:05:31 -0500 From:
sl@[REDACTED] To:
9front-bugs@[REDACTED] Subject: Re: [9front-bugs] “” quoting bug Reply-To:
9front-bugs@[REDACTED]

> Somebody (sl, I think) gave me a fix for this a while back, and it’s > been working fine ever since. > > ; hg diff /rc/bin/“” > diff -r f97691e4d2a3 rc/bin/“” > —– a/rc/bin/“” Fri Dec 25 17:05:05 2015 +0100 > +++ b/rc/bin/“” Thu Jan 07 16:37:27 2016 +0000 > @@ -9,5 +9,5 @@ > } > > echo ‘ ’ $x > –x={ echo -n 'eval '; echo $_x | sed 's/^'$PROMPT'//'} &#62; +_x={ echo -n ‘eval ’‘’; echo $x | sed ’s/^‘$PROMPT’//; s/‘’/‘’‘’/g; s/$/‘’/‘} > rc -c $“_x > ;

I’ve committed this change.

sl


Thu, 7 Jan 2016 15:07:34 EST sl