This is an old-school Unix terminal way of mimicking the use of ‘fancy quoting’ by using the backtick (`) and single quote (') because on *some* terminals they were shaped the same as ‘ and ’. Changing this would break many error parsers that are used to Ruby doing it this way. -a On Thu, Jan 9, 2020 at 4:54 PM 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 `
': undefined local variable or method `foo' for main:Object > (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: > > -- Austin Ziegler • halostatue@gmail.com • austin@halostatue.ca http://www.halostatue.ca/ • http://twitter.com/halostatue