[prev in list] [next in list] [prev in thread] [next in thread] 

List:       ast-users
Subject:    [ast-users] Ksh93 t / window resize
From:       "Nemeth, Michael Kenneth (Mike)" <Mike.Nemeth () lsi ! com>
Date:       2009-04-27 14:13:26
Message-ID: 572F0C094F37344EB2B046EF5508059D2994B0BA () PALMAIL01 ! lsi ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

*mike.nemeth@lsi.com
* Office  610 712 8106
* Cell      610 653 8847


[Attachment #5 (text/html)]

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Exchange Server">
<!-- converted from rtf -->
<style><!-- .EmailQuote { margin-left: 1pt; padding-left: 4pt; border-left: #800000 \
2px solid; } --></style> </head>
<body>
<font face="Arial, sans-serif" size="2">
<div>Hello,</div>
<div>&nbsp;</div>
<div>I'm currently using a locally compiled version of ksh93 t on a Linux RHEL4.0 \
system.</div> <div>&nbsp;</div>
<div style="padding-left: 19pt; ">pacelab2:/home/mknemeth: echo ${.sh.version}</div>
<div style="padding-left: 19pt; ">Version M 93t 2008-11-04</div>
<div style="padding-left: 19pt; ">&nbsp;</div>
<div>I have encountered strange behavior with ksh93 t and xterm window resize when \
environment variables</div> <div>&nbsp;</div>
<div>FCEDIT</div>
<div>EDITOR</div>
<div>VISUAL</div>
<div>&nbsp;</div>
<div>are not set in the ksh environment.</div>
<div>&nbsp;</div>
<div>When I resize the window my PS2 value is echoed to stdout and a ^L appears to be \
sent to stdin.&nbsp; See the strace output and the xterm window output below.&nbsp; \
Note that my PS2 is set to Continue&gt;</div> <div>&nbsp;</div>
<div style="padding-left: 19pt; "><u> trace</u></div>
<div style="padding-left: 19pt; ">select(1, [0], NULL, NULL, \
NULL)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ? ERESTARTNOHAND (To be \
restarted)</div> <div style="padding-left: 19pt; ">--- SIGWINCH (Window changed) @ 0 \
(0) ---</div> <div style="padding-left: 19pt; ">rt_sigaction(SIGWINCH, {0x40ade0, [], \
SA_RESTORER|SA_INTERRUPT, 0x3d7fb2e2b0}, {0x40ade0, [], SA_RESTORER|SA_INTERRUPT, \
0x3d7fb2e2b0}, 8) = 0</div> <div style="padding-left: 19pt; ">ioctl(2, TIOCGWINSZ, \
{ws_row=50, ws_col=99, ws_xpixel=612, ws_ypixel=659}) = 0</div> <div \
style="padding-left: 19pt; \
">rt_sigreturn(0x62a500)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= -1 EINTR (Interrupted system call)</div> <div style="padding-left: 19pt; ">write(2, \
&quot;\r&quot;, 1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 1</div> <div style="padding-left: 19pt; ">ioctl(2, TIOCGWINSZ, {ws_row=50, \
ws_col=99, ws_xpixel=612, ws_ypixel=659}) = 0</div> <div style="padding-left: 19pt; \
">poll(0x7fbffff780, 0, \
50)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 0</div> <div style="padding-left: 19pt; ">ioctl(2, TIOCGWINSZ, {ws_row=50, \
ws_col=99, ws_xpixel=612, ws_ypixel=659}) = 0</div> <div style="padding-left: 19pt; \
">lseek(3, 0, SEEK_CUR)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 6152</div> <div style="padding-left: 19pt; ">lseek(3, 6152, \
SEEK_SET)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 6152</div> <div style="padding-left: 19pt; ">read(3, &quot;&quot;, \
8192)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 0</div> <div style="padding-left: 19pt; ">lseek(3, 6152, \
SEEK_SET)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 6152</div> <div style="padding-left: 19pt; ">read(3, &quot;&quot;, \
8192)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 0</div> <div style="padding-left: 19pt; ">select(1, [0], NULL, NULL, {0, \
0})&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = 0 (Timeout)</div> <div style="padding-left: 19pt; \
">write(2, &quot;Continue&gt; &quot;, \
10)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = \
10</div> <div style="padding-left: 19pt; ">ioctl(0, CDROMEJECT_SW, \
0x7fbffff430)&nbsp;&nbsp; = -1 EINVAL (Invalid argument)</div> <div \
style="padding-left: 19pt; ">select(1, [0], NULL, NULL, NULL</div> <div \
style="padding-left: 19pt; ">&nbsp;</div> <div style="padding-left: 19pt; "><u>output \
on window</u></div> <div style="padding-left: 19pt; ">Continue&gt; home/mknemeth: \
[hit-return]</div> <div style="padding-left: 19pt; ">-ksh: ^L: not found [No such \
file or directory]</div> <div style="padding-left: 19pt; ">&nbsp;</div>
<div>When variable such as VISUAL is set and I do a window resize I get normal \
behavior.</div> <div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; <u> trace</u></div>
<div style="padding-left: 19pt; ">select(1, [0], NULL, NULL, \
NULL)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; = ? ERESTARTNOHAND (To be \
restarted)</div> <div style="padding-left: 19pt; ">--- SIGWINCH (Window changed) @ 0 \
(0) ---</div> <div style="padding-left: 19pt; ">rt_sigaction(SIGWINCH, {0x40ade0, [], \
SA_RESTORER|SA_INTERRUPT, 0x3d7fb2e2b0}, {0x40ade0, [], SA_RESTORER|SA_INTERRUPT, \
0x3d7fb2e2b0}, 8) = 0</div> <div style="padding-left: 19pt; ">ioctl(2, TIOCGWINSZ, \
{ws_row=51, ws_col=98, ws_xpixel=605, ws_ypixel=666}) = 0</div> <div \
style="padding-left: 19pt; \
">rt_sigreturn(0x62a500)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= -1 EINTR (Interrupted system call)</div> <div style="padding-left: 19pt; ">write(2, \
&quot;\r&quot;, 1)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 1</div> <div style="padding-left: 19pt; ">ioctl(2, TIOCGWINSZ, {ws_row=51, \
ws_col=98, ws_xpixel=605, ws_ypixel=666}) = 0</div> <div style="padding-left: 19pt; \
">poll(0x7fbfff95a0, 0, \
50)&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
= 0</div> <div style="padding-left: 19pt; ">ioctl(2, TIOCGWINSZ, {ws_row=51, \
ws_col=98, ws_xpixel=605, ws_ypixel=666}) = 0</div> <div style="padding-left: 19pt; \
">write(2, &quot;\rpacelab2:/home/mknemeth: &quot;, 26) = 26</div> <div \
style="padding-left: 19pt; ">ioctl(0, CDROMEJECT_SW, 0x7fbfff9550)&nbsp;&nbsp; = -1 \
EINVAL (Invalid argument)</div> <div>&nbsp;</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; <u> output on window</u></div>
<div style="padding-left: 19pt; ">pacelab2:/home/mknemeth: [hit-return]</div>
<div style="padding-left: 19pt; ">pacelab2:/home/mknemeth:</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Is it mandatory that the FCEDIT, EDITOR or VISUAL be set in the \
environment?</div> <div>&nbsp;</div>
<div>Thanks,</div>
<div>&nbsp;</div>
<div style="margin-top: 5pt; margin-bottom: 5pt; "><font face="Comic Sans MS, \
cursive" color="#999999"><b>Mike Nemeth<br>

</b><font face="Arial, sans-serif" size="2">Global Engineering Systems<br>

</font><img src="cid:cee6733f-9475-44cb-9608-974b3af5d7e1"><font face="Arial, \
sans-serif" color="#000000"> <br>

</font><font face="Wingdings" size="3" color="#808080"><b>&#43;</b></font><font \
face="Times New Roman, serif" size="3"><b>mike.nemeth@lsi.com<br>

</b></font><font face="Wingdings" color="#808080"><b>(</b></font><font face="Arial, \
sans-serif" color="#000000">&nbsp;</font><font face="Arial, sans-serif" \
size="2"><b>Office</b></font><font face="Arial, sans-serif" size="2" \
color="#000000">&nbsp; </font><font face="Arial, sans-serif" size="2">610 712 \
8106<br>

</font><font face="Wingdings" color="#808080"><b>(</b></font><font face="Arial, \
sans-serif" color="#000000">&nbsp;</font><font face="Arial, sans-serif" \
size="2"><b>Cell</b></font><font face="Arial, sans-serif" size="2"> </font><font \
face="Arial, sans-serif" size="2" color="#000000">&nbsp;&nbsp;&nbsp;&nbsp; \
</font><font face="Arial, sans-serif" size="2">610 653 8847</font></font></div> \
<div><font face="Arial, sans-serif" size="2">&nbsp;</font></div> <div>&nbsp;</div>
</font>
</body>
</html>


["Picture (Metafile) 1.jpg" (image/jpeg)]

_______________________________________________
ast-users mailing list
ast-users@research.att.com
https://mailman.research.att.com/mailman/listinfo/ast-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic