[ruby-core:96743] Re: [Ruby master Bug#16495] Inconsistant Quotes in Error Messages
From:
Austin Ziegler <halostatue@...>
Date:
2020-01-09 22:58:16 UTC
List:
ruby-core #96743
This is an old-school Unix terminal way of mimicking the use of =E2=80=98fa=
ncy
quoting=E2=80=99 by using the backtick (`) and single quote (') because on
*some* terminals
they were shaped the same as =E2=80=98 and =E2=80=99. Changing this would b=
reak many error
parsers that are used to Ruby doing it this way.
-a
On Thu, Jan 9, 2020 at 4:54 PM <kolano@gmail.com> wrote:
> Issue #16495 has been reported by Kolano (Kenneth Kolano).
>
> ----------------------------------------
> Bug #16495: Inconsistant Quotes in Error Messages
> https://bugs.ruby-lang.org/issues/16495
>
> * Author: Kolano (Kenneth Kolano)
> * Status: Open
> * Priority: Normal
> * Assignee:
> * Target version:
> * ruby -v: 2.5.3
> * Backport: 2.5: UNKNOWN, 2.6: UNKNOWN, 2.7: UNKNOWN
> ----------------------------------------
> Error messages use inconsistent pairs of quotes, for instance...
>
> ```
> -e:1:in `<main>': undefined local variable or method `foo' for main:Objec=
t
> (NameError)
> ```
> ...where a "fancy" quote is used on the left-hand side, and a standard
> single quote is used on the right.
>
> The same quotes should be used on either side of elements being quoted.
>
>
>
> --
> https://bugs.ruby-lang.org/
>
> Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=3Dunsubscrib=
e>
> <http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>
>
--=20
Austin Ziegler =E2=80=A2 halostatue@gmail.com =E2=80=A2 austin@halostatue.c=
a
http://www.halostatue.ca/ =E2=80=A2 http://twitter.com/halostatue
Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>