cvs commit: src/bin/sh output.c

Peter Avalos pavalos at
Sat Jan 13 21:16:08 PST 2007

pavalos     2007/01/13 21:12:40 PST

DragonFly src repository

  Modified files:
    bin/sh               output.c 
  Replace a home-grown printf() clone with a fwopen() wrapper around
  libc's vfprintf() that writes to a `struct output' instead of a file.
  Print empty quotes ('') when an empty string is passed to outqstr().
  This makes a difference for the trap builtin, where after "trap '' 0" we
  printed "trap -- quit".  This is wrong, because an empty action means to reset
  the action to the default.  A side effect of this commit is that empty
  variables are now printed as "variable=''" instead of just "variable=".
  Obtained-from:  FreeBSD
  Revision  Changes    Path
  1.4       +28 -183   src/bin/sh/output.c

More information about the Commits mailing list