[8730] in Athena Bugs
rsaix 7.3R: more
daemon@ATHENA.MIT.EDU (Richard J. Barbalace)
Mon Dec 9 00:08:38 1991
To: bugs@Athena.MIT.EDU
Date: Mon, 09 Dec 91 00:08:26 EST
From: Richard J. Barbalace <rjbarbal@Athena.MIT.EDU>
System name: m11-113-3
Type and version: POWER 7.3R
Display type: colorgda
What were you trying to do?
On an RS/6000, I tried issuing the command "ls -AFlgu | more" to get a
long listing of my files piped through "more".
What's wrong:
I noticed that "more" fails to clear the xterm window properly when
used in this pipeline. Instead of clearing the screen before displaying
the next page, "more" simply overwrited the text of the previous page
with the new text.
The first page of the output began with this:
Frw-r--r-- 1 rjbarbal rjbarbal 6054 Dec 08 23:06 .Xresources
Frw-r--r-- 1 rjbarbal rjbarbal 5336 Dec 08 22:48 .aliases
Frw------- 1 rjbarbal rjbarbal 1490 Dec 08 22:48 .aliases.special
Frw------- 1 rjbarbal rjbarbal 2649 Dec 08 23:33 .anyone
Frw------- 1 rjbarbal rjbarbal 2510 Dec 01 12:44 .anyone.old
Frw------- 1 rjbarbal rjbarbal 199 Dec 08 02:06 .away
Frwxr-xr-x 1 rjbarbal rjbarbal 2429 Dec 08 22:48 .cshrc*
which is fine.
The second page (after pressing the space bar to continue) began:
Drwxr-xr-x 9 rjbarbal rjbarbal 1024 Dec 08 21:27 Athena/
Drwxr-xr-x 3 rjbarbal rjbarbal 1024 Dec 08 04:29 Bitmaps/
Drwxr-x--- 4 rjbarbal rjbarbal 512 Dec 08 04:29 Class/
Drwxr-x--- 2 rjbarbal rjbarbal 512 Dec 08 04:29 Consult/
Drwxr-x--- 8 rjbarbal rjbarbal 512 Dec 08 22:40 Mail/
Lrwxrwxrwx 1 rjbarbal rjbarbal 31 Dec 08 23:56 Person@ -> /afs/media/use/rjbarbal/Personrjbarbal rjbarbal 199 Dec 08 02:06 .away
Drwxr-xr-x 2 rjbarbal rjbarbal 512 Dec 08 04:29 Postscript/
Notice the line containing the symbolic link.
What should have happened:
That line should have appeared:
Lrwxrwxrwx 1 rjbarbal rjbarbal 31 Dec 08 23:56 Person@ -> /afs/media/use/rjbarbal/Person
Drwxr-xr-x 2 rjbarbal rjbarbal 512 Dec 08 04:29 Postscript/
This was left over from the previous page, and not erased by the "more":
rjbarbal rjbarbal 199 Dec 08 02:06 .away
"more" should completely clear the xterm window before outputting
new text.