Date: Fri, 11 Aug 2006 20:16:28 -0700 (PDT) From: Lyndon Nerenberg <lyndon@orthanc.ca> To: Julian Elischer <julian@elischer.org> Cc: current@freebsd.org Subject: Re: suggested addition to 'date' Message-ID: <20060811200747.D770@orthanc.ca> In-Reply-To: <44DD4510.5070002@elischer.org> References: <44DD4510.5070002@elischer.org>
next in thread | previous in thread | raw e-mail | index | archive | help
I would lose the arbitrary restriction on line length by dropping linebuf and using getchar()/putchar() with a test for \n to determine when to emit the timestamp. There's also the restriction on only being able to timestamp one stream. I can see where it would be useful to be able to timestamp both stdout and stderr; with 'date -s' you have to combine them. However adding support for this argues for a separate program, as that sort of functionality doesn't belong in date. --lyndon
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060811200747.D770>