Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > gnu.bash.bug > #14322 > unrolled thread
| Started by | Isaac Marcos <isaacmarcos100010@gmail.com> |
|---|---|
| First post | 2018-07-10 16:57 -0400 |
| Last post | 2018-07-10 16:57 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to gnu.bash.bug
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Number with sign is read as octal despite a leading 10# Isaac Marcos <isaacmarcos100010@gmail.com> - 2018-07-10 16:57 -0400
| From | Isaac Marcos <isaacmarcos100010@gmail.com> |
|---|---|
| Date | 2018-07-10 16:57 -0400 |
| Subject | Re: Number with sign is read as octal despite a leading 10# |
| Message-ID | <mailman.3393.1531256229.1292.bug-bash@gnu.org> |
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
Back to top | Article view | gnu.bash.bug
csiph-web