cvs commit: src/bin/sh output.c
pavalos at crater.dragonflybsd.org
Sat Jan 13 21:16:08 PST 2007
pavalos 2007/01/13 21:12:40 PST
DragonFly src repository
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=".
Revision Changes Path
1.4 +28 -183 src/bin/sh/output.c
More information about the Commits