From: nobu@... Date: 2014-08-07T15:12:52+00:00 Subject: [ruby-core:64244] [ruby-trunk - Bug #10117] Invalid char does not cause syntax error in eval Issue #10117 has been updated by Nobuyoshi Nakada. Description updated Mistake. ---------------------------------------- Bug #10117: Invalid char does not cause syntax error in eval https://bugs.ruby-lang.org/issues/10117#change-48233 * Author: Nobuyoshi Nakada * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto * Category: syntax * Target version: * ruby -v: trunk * Backport: 2.0.0: REQUIRED, 2.1: REQUIRED ---------------------------------------- Directly coded invalid char causes `SyntaxError`, but not in `eval`. ���������������������������������������������`SyntaxError`���������������������`eval`������������������������������ ~~~ $ ruby -e $'\x01' -e:1: Invalid char `\x01' in expression bash: exit 1 ~~~ ~~~ $ ruby -e 'p eval("\x01")' nil bash: exit 1 ~~~ -- https://bugs.ruby-lang.org/