Csh confusion: #define HZ 100?

Karl Kleinpaste karl at osu-eddie.UUCP
Sun Dec 2 05:40:49 AEST 1984


Oh, my, if I'd just put  about  12  seconds  more  thought  into the problem
before I posted on the subject...{:-)}
----------
> > We have been doing some major  hacking on csh, particularly in the area
> > of  rewriting  the tcsh editor interface. (If you're  interested,  when
> > it's done, it'll  edit  in  either  vi or  emacs  style.)
> Sounds like ksh(1).
----------
Um, no, actually it isn't.  The  basic problem  with  ksh is that, deep down
inside itself, it's still the Bourne shell. I've tried using it at work, and
I really don't care for it. I like  the  interface csh gives me, and so I am
adding  (or,  actually,  re-adding) an editor interface to  it.  The  editor
interface is being rewritten because the original tcsh editor interface is a
rather  crufty  hack;  it works, but just barely, and not  very  well.  This
particular csh also has a  whole  herd of  extra  functions and capabilities
that I happen to like/want which Bourne shell still doesn't have.

Anyway, the point is (for all of you who were still wondering, probably very
few  by  now)  that HZ, although  defined  in csh's sh.local.h  as  100  and
commented as being  the  AC  line  frequency,  is  no  such thing.  It's the
frequency  at  which the system's clock ticks. It seems that the  folks  who
were creating 4.2BSD didn't like trying to deal with the highly inconvenient
60  ticks/sec,  and so they changed it to 100.  I hadn't been aware of  that
fact.  Non-standard, but  workable.  OK, I  lose.  Gads, you'd think I never
hacked the kernel, which I do every single day.

Now about those fortune cookies I  promised...I  got this torrential rain of
mail, not to mention the articles which appeared as "Re: Csh  confusion...",
and I have no idea who it was that first got it across to me.  So if someone
can _p_r_o_v_e that they were the first, I'll send you those cookies...{:-)}

All I ask is that everybody _p_l_e_a_s_e  stop  writing me mail and explaining the
now-self-evident to me...like I said, if I'd just put a couple seconds' more
thought into the  problem  before  posting,  I  wouldn't  have had to bother
anybody else...

Oh, if it matters to anyone, Bill  Shannon at Sun informed me that HZ on his
company's systems is 50, so don't get yourself confused if you're on one  of
those.
-- 
>From the badly beaten keyboards of                       best address---+
him who speaks in _*_T_y_P_e_* _f-_O-_n-_T-_s...                                   |
									V
Karl Kleinpaste @ Bell Labs, Columbus   614/860-5107  {cbosgd,ihnp4}!_c_b_r_m_a_!_k_k
                @ Ohio State University 614/422-0915    cbosgd!osu-eddie!karl



More information about the Comp.unix.wizards mailing list