Project

General

Profile

Bug #10463

:~@ and :!@ are not parsed correctly

Added by sawa (Tsuyoshi Sawada) over 4 years ago. Updated over 4 years ago.

Status:
Open
Priority:
Normal
Assignee:
-
Target version:
-
ruby -v:
2.1.4
[ruby-core:66039]

Description

The at mark in literal symbols :~@ and :!@ are ignored.

:~@  # => :~
:!@  # => :!

History

Updated by silverhammermba (Max Anselm) over 4 years ago

That's because bash is trying to interpolate the string.

$ ruby -e 'p :!@'
:!

Also available in: Atom PDF