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

Stefan Farfeleder stefanf at FreeBSD.org
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 
  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.9.8.2   +5 -1      src/bin/sh/arith.h
  1.19.8.2  +13 -9     src/bin/sh/arith.y
  1.47.2.4  +3 -6      src/bin/sh/expand.c
  1.17.8.1  +11 -4     src/bin/sh/shell.h


More information about the cvs-src mailing list