[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox
Subject: [BUG] 'eval' returns 0 on error
From: Martijn Dekker <martijn () inlv ! org>
Date: 2016-12-22 23:30:37
Message-ID: ed76ba79-02d4-6ff8-21bf-20d6ff2fcadf () inlv ! org
[Download RAW message or body]
On busybox 1.26.0, 'eval' returns status 0 even if there is a syntax error.
$ ( eval '(' ) && echo false positive
./ash: eval: syntax error: unexpected end of file (expecting ")")
false positive
This behaviour does not occur in 1.25.1.
Thanks,
- M.
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic