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

why?



excuse me.  i got:

fn log {let (q=`` \n {ls -t /var/log/* | head -15}; qq=''; i='') {
	qq=$q
	while {!~ $#q 0} {            # this contruct avoids the
		echo $#q $qq($#q)     # otherwise popular call
		q=$q(2 ...)           # to `{expr $something + 1}
	}
	echo -n '## ? '               # input list of naturals
	i=<={%read}
	echo $i
	catch @ exc org msg {
		echo exception: $exc origin: $org
		echo message: $msg
		echo resuming std handler
		throw $exc $org $msg
	} {
		echo $qq($i) $qq($^i)
		%read
		$PAGER $qq($^i)
	}
}}

this should give a list of the most-recently-changed logfiles, which it
does, and page it to my screen, which it refuses to do.  it shows only one
file, the first selected by the user during %read.

...BUT IT DOES NOT WORK!  i tried almost everything by now, what should i
do?  am i too tired?  if yes, of what?

help awaiting, gnawing on my own teeth...

-- 
inode@freenet.de