Re: [hackers] [sbase] expr: Don't interpret any arguments || sin

2015-04-21 Thread Evan Gates
Patch attached to accept and ignore leading -- -emg From 52754da6090e98f82a5dfbf56c49693a3282e14f Mon Sep 17 00:00:00 2001 From: Evan Gates Date: Tue, 21 Apr 2015 10:32:32 -0700 Subject: [PATCH] accept and ignore leading -- for expr --- expr.c | 2 ++ 1 file changed, 2 insertions(+) diff --git

Re: [hackers] [sbase] expr: Don't interpret any arguments || sin

2015-04-21 Thread Evan Gates
If you want to allow a negative number to come first and not be treated as an option that is fine, but you still need to accept -- as an end to options. From the last paragraph of the "APPLICATION USAGE" section of expr(1p)[0]: Therefore, the conforming application must employ the "--" construct o

[hackers] [sbase] expr: Don't interpret any arguments || sin

2015-04-21 Thread git
commit 504855ff96389b02fd92197792a7b26069cde593 Author: sin Date: Tue Apr 21 17:08:14 2015 +0100 expr: Don't interpret any arguments expr -1 '<' 1 failed previously. There is no need to have usage at all, any errors will be flagged up as necessary further down. diff -