cvs commit: src/bin/sh arith.h arith.y expand.c shell.h

Stefan Farfeleder stefanf at
Sun Apr 27 20:25:45 UTC 2008

stefanf     2008-04-27 20:25:43 UTC

  FreeBSD src repository

  Modified files:        (Branch: RELENG_6)
    bin/sh               arith.h arith.y expand.c shell.h 
  - Fix bugs where the value of arithmetic expansion$((...)) was trucated
    to type int.
  - Change the type used for arithmetic expansion to intmax_t (ie. 64 bit on all
    currently supported FreeBSD architectures).  SUSv3 requires at least type
    long but allows for larger types.  Other shells (eg. bash, zsh, NetBSD's sh)
    do that too.
  PR:             122659
  Submitted by:   Jaakko Heinonen (minor modifications by me)
  Revision  Changes    Path   +5 -1      src/bin/sh/arith.h  +13 -9     src/bin/sh/arith.y  +3 -6      src/bin/sh/expand.c  +11 -4     src/bin/sh/shell.h

More information about the cvs-all mailing list