tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: ${LINENO} implementation change for /bin/sh

    Date:        Mon, 8 May 2017 15:12:15 +0000 (UTC)
    From: (Christos Zoulas)
    Message-ID:  <oeq1se$8qa$>

  | >So, what does everyone think about that way?
  | meaning that $LINENO is always the physical line number of the script
  | regardless if we are in a function or not (which is I guess what ksh/bash do)?

Yes, but (once I look at doing it, if it is reasonable to implement)
making "local LINENO" in the function cause local line numbering instead.

The alternative would be an option set before the function is defined
(which I have implemented already, and works).

Of we could have both, perhaps (the option is really cheap, don't know
about the other yet.)

Or of course, we can just pick one way (like everyone else does - though
they haven't all picked the same way) and do that all the time.


Home | Main Index | Thread Index | Old Index