earle@SUN.COM (Greg Earle) (06/16/89)
I built `tcsh' on my Sun-3/160 (SunOS 4.0.1), using `-O -fstrength-reduce -finline-functions -fcombine-regs'. All seemed to be well, until I noticed the following: When one uses ^D to show all the possible completions of a command, the expected amount of screen output (in terms of lines) is emitted, but nothing is displayed on the screen (i.e., as if one had set `-echo' before the command). This same problem does not show up with a `tcsh' built using `cc' with `-O2'. Let me show an example: Built with `cc -O2': poseur:1:228 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool cron/ lpd.lock mqueue/ secretmail/ uucppublic/ lpd/ mail/ rwho/ uucp/ poseur:1:229 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool/ (hit ^D here:) cron/ lpd.lock mqueue/ secretmail/ uucppublic/ lpd/ mail/ rwho/ uucp/ poseur:2:21 [ /usr/share/src/sun/bin/tcsh ] # ls /usr/spool/ This is the normal behavior. Built with `gcc -O -fstrength-reduce -finline-functions -fcombine-regs': poseur:1:231 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool cron/ lpd.lock mqueue/ secretmail/ uucppublic/ lpd/ mail/ rwho/ uucp/ poseur:1:232 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool/ poseur:1:232 [ /usr/src/sun/bin/tcsh ] # ls /usr/spool/ The correct number of lines is there, but no screen output is seen! Weird ... Any ideas? I haven't even the vaguest idea where to start looking to try and narrow this down; I suspect a terminal mode is getting smashed somewhere, somehow ... - Greg Earle Sun Microsystems, Inc. JPL on-site Software Support earle@Sun.COM