Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Sep 1996 21:57:00 -0700 (PDT)
From:      Peter Wemm <peter>
To:        CVS-committers, cvs-all, cvs-usrbin
Subject:   cvs commit:  src/usr.bin/printf printf.c
Message-ID:  <199610010457.VAA26782@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
peter       96/09/30 21:57:00

  Modified:    usr.bin/printf  printf.c
  Log:
  When used as a shell builtin, this program decoded a subset of arguments
  known to printf(3) and then used printf() to format it... The only
  problem what the #define printf out1fmt.  The code was behaving differently
  when run as a shell builtin since out1fmt() isn't printf(3).
  
  Simple hack.  Print to a buffer and fputs (also #defined for sh) the
  result.  This should fix the printf builtin problem in PR#1673, rather
  than leaving the call commented out.  (printf.o was being statically linked
  in anyway, we might as well use it)
  
  Revision  Changes    Path
  1.5       +9 -4      src/usr.bin/printf/printf.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199610010457.VAA26782>