On Sat, Dec 09, 2006 at 07:04:22PM +0800, Uwe Dippel wrote:
>
> Thanks Darren, but I'd written this myself faster than it took me to write
> the message. I am still sure, that most users, including writers (and
> updaters) of the FAQ would profit from this addition. The FAQ is full of
> this `arch`, `uname` `machine` and whatnot stuff. 
> When you read through the cvs chapters, there is always the explicit
> OpenBSD_V_n.
> 
> There is a German proverb that expresses something like 'Why make it
> simple, when can be done in a complicated way as well ?'

  rather than adding bloat to uname(1) (that other OSs aren't going to have),
  just write a simple function in the script that checks for existance
  of 'CVS/Tag' - assumes 'HEAD' if missing, otherwise reads it in and knocks
  the first character off.

  that's easy to write in a manner such that users of several OSs and
  various shells could just copy/paste and have it work for them too.

-- 

  jared

Reply via email to