Hello,

I'm currently using a locally compiled version of ksh93 t on a Linux RHEL4.0 
system.

pacelab2:/home/mknemeth: echo ${.sh.version}
Version M 93t 2008-11-04

I have encountered strange behavior with ksh93 t and xterm window resize when 
environment variables

FCEDIT
EDITOR
VISUAL

are not set in the ksh environment.

When I resize the window my PS2 value is echoed to stdout and a ^L appears to 
be sent to stdin.  See the strace output and the xterm window output below.  
Note that my PS2 is set to Continue>

 trace
select(1, [0], NULL, NULL, NULL)        = ? ERESTARTNOHAND (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---
rt_sigaction(SIGWINCH, {0x40ade0, [], SA_RESTORER|SA_INTERRUPT, 0x3d7fb2e2b0}, 
{0x40ade0, [], SA_RESTORER|SA_INTERRUPT, 0x3d7fb2e2b0}, 8) = 0
ioctl(2, TIOCGWINSZ, {ws_row=50, ws_col=99, ws_xpixel=612, ws_ypixel=659}) = 0
rt_sigreturn(0x62a500)                  = -1 EINTR (Interrupted system call)
write(2, "\r", 1)                       = 1
ioctl(2, TIOCGWINSZ, {ws_row=50, ws_col=99, ws_xpixel=612, ws_ypixel=659}) = 0
poll(0x7fbffff780, 0, 50)               = 0
ioctl(2, TIOCGWINSZ, {ws_row=50, ws_col=99, ws_xpixel=612, ws_ypixel=659}) = 0
lseek(3, 0, SEEK_CUR)                   = 6152
lseek(3, 6152, SEEK_SET)                = 6152
read(3, "", 8192)                       = 0
lseek(3, 6152, SEEK_SET)                = 6152
read(3, "", 8192)                       = 0
select(1, [0], NULL, NULL, {0, 0})      = 0 (Timeout)
write(2, "Continue> ", 10)              = 10
ioctl(0, CDROMEJECT_SW, 0x7fbffff430)   = -1 EINVAL (Invalid argument)
select(1, [0], NULL, NULL, NULL

output on window
Continue> home/mknemeth: [hit-return]
-ksh: ^L: not found [No such file or directory]

When variable such as VISUAL is set and I do a window resize I get normal 
behavior.

      trace
select(1, [0], NULL, NULL, NULL)        = ? ERESTARTNOHAND (To be restarted)
--- SIGWINCH (Window changed) @ 0 (0) ---
rt_sigaction(SIGWINCH, {0x40ade0, [], SA_RESTORER|SA_INTERRUPT, 0x3d7fb2e2b0}, 
{0x40ade0, [], SA_RESTORER|SA_INTERRUPT, 0x3d7fb2e2b0}, 8) = 0
ioctl(2, TIOCGWINSZ, {ws_row=51, ws_col=98, ws_xpixel=605, ws_ypixel=666}) = 0
rt_sigreturn(0x62a500)                  = -1 EINTR (Interrupted system call)
write(2, "\r", 1)                       = 1
ioctl(2, TIOCGWINSZ, {ws_row=51, ws_col=98, ws_xpixel=605, ws_ypixel=666}) = 0
poll(0x7fbfff95a0, 0, 50)               = 0
ioctl(2, TIOCGWINSZ, {ws_row=51, ws_col=98, ws_xpixel=605, ws_ypixel=666}) = 0
write(2, "\rpacelab2:/home/mknemeth: ", 26) = 26
ioctl(0, CDROMEJECT_SW, 0x7fbfff9550)   = -1 EINVAL (Invalid argument)

      output on window
pacelab2:/home/mknemeth: [hit-return]
pacelab2:/home/mknemeth:


Is it mandatory that the FCEDIT, EDITOR or VISUAL be set in the environment?

Thanks,


Mike Nemeth
Global Engineering Systems

*[email protected]
* Office  610 712 8106
* Cell      610 653 8847


<<inline: Picture (Metafile) 1.jpg>>

_______________________________________________
ast-users mailing list
[email protected]
https://mailman.research.att.com/mailman/listinfo/ast-users

Reply via email to