Janis Papanagnou <jani…@hotmail.com> writes:
[...]
> I want to give you an example code from a little shell tool I wrote:
>
> function LINES.set { .kosta.rows=${.sh.value} ; .kosta.update ;}
>
> (What this does is that whenever the environment variable 'LINES'
> changes - e.g. if you pick your mouse and resize the X-window - then
> that function gets triggered and the actions defined executed.)
>
> I'd be interested how you'd implement or emulate that, say, in Bash.
I do something similar in bash, but using a different mechanism (so this
isn't a response to your challenge). I trap on SIGWINCH.
--
Keith Thompson (The_Other_Keith) Keit…@gmail.com
void Void(void) { Void(); } /* The recursive call of the void */