Do spaces matter with expr?


    Dec 11 2010 | 9:41 pm
    Hello,
    I was recently explaining expr to someone and told him that the spaces between the arguments in the expression didn't matter--meaning there can be white space like this:
    $i1 + $i2 * $i3
    or not like this:
    $i1+$i2*$i3
    It seems to work both ways, but I can't see any definitive statement on spaces in expr.
    Does anyone know if the spaces or lack thereof ever become an issue?

    • Dec 12 2010 | 7:21 am
      spaces mean nothing.
      you can think of the whole expression as a symbol, which is parsed and interpreted inside.
      i find this very handy, because you can use spaces only where you want them for better readabilty:
      $i1 + ($i2*$i3)
    • Dec 13 2010 | 6:36 pm
      Thank you! Exactly what I thought.