[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Number with sign is read as octal despite a leading 10#
From: |
Isaac Marcos |
Subject: |
Re: Number with sign is read as octal despite a leading 10# |
Date: |
Tue, 10 Jul 2018 16:57:03 -0400 |
Chet Ramey (<chet.ramey@case.edu>) wrote:
> On 7/10/18 2:48 PM, Isaac Marcos wrote:
> > That is not an integer constant. Integer constants don't begin with
> `-'.
>
That makes negative numbers invalid.
This is not a serious argument.
Because of the difference between an operator and a constant. Unary plus
> and minus have a higher precedence than arithmetic operators. So if you
> expand the `a' to an expression, which is what happens, the expression
> consists of an operator (+ or -) and a constant, and that expression has
> a higher precedence than the +. You might think about why using `$a' in
> place of the `a' would not work all the time.
>
I don't care. All other shells do this correctly. It makes you the only one
wrong.
This is not a serious discussion.
--
Cases are always threesome:
Best case, Worst case, and Just in case
- Number with sign is read as octal despite a leading 10#, Isaac Marcos, 2018/07/09
- Re: Number with sign is read as octal despite a leading 10#, Clint Hepner, 2018/07/09
- Re: Number with sign is read as octal despite a leading 10#, Ilkka Virta, 2018/07/10
- Re: Number with sign is read as octal despite a leading 10#, Ilkka Virta, 2018/07/10
- Re: Number with sign is read as octal despite a leading 10#, Chet Ramey, 2018/07/10
- Re: Number with sign is read as octal despite a leading 10#, Ilkka Virta, 2018/07/10
- Message not available
- Message not available
- Re: Number with sign is read as octal despite a leading 10#,
Isaac Marcos <=
- Re: Number with sign is read as octal despite a leading 10#, Eduardo Bustamante, 2018/07/10
- Re: Number with sign is read as octal despite a leading 10#, Isaac Marcos, 2018/07/10
- Re: Number with sign is read as octal despite a leading 10#, Isaac Marcos, 2018/07/10
- Re: Number with sign is read as octal despite a leading 10#, Chet Ramey, 2018/07/10
- Re: Number with sign is read as octal despite a leading 10#, Robert Elz, 2018/07/13
- Re: Number with sign is read as octal despite a leading 10#, Chet Ramey, 2018/07/10
- Re: Number with sign is read as octal despite a leading 10#, Pierre Gaston, 2018/07/10
Re: Number with sign is read as octal despite a leading 10#, Chet Ramey, 2018/07/10