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

Stefan Farfeleder stefanf at FreeBSD.org
Sun Apr 27 20:46:46 UTC 2008


stefanf     2008-04-27 20:46:45 UTC

  FreeBSD src repository

  Modified files:
    bin/sh               arith.h arith.y shell.h 
  Log:
  - 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
  1.12      +5 -1      src/bin/sh/arith.h
  1.22      +13 -9     src/bin/sh/arith.y
  1.18      +11 -4     src/bin/sh/shell.h


More information about the cvs-src mailing list