script(1) issue/question

Alfred Perlstein alfred at freebsd.org
Thu Sep 17 02:00:58 UTC 2009


[[ peter cc'd cause he seemed to add the original
   "exec a non-shell option" to script(1) ]]

Hello all,

I noticed that when running "script" and passing a program
to exec that ^Z does not seem to work (although ^C does).

I'm trying to figure a workaround and what I was going to
do was add ISIG to the term flags when spawning a non-shell
utility.

(should I also check /etc/shells to help preserve POLA
further?)

Any pointers on this?

Would this be a good idea, or a bad idea?  Terminal gurus
give me a hand please! :)

please ignore the sigflg part at the top for now, prepping
for possible cli option to avoid POLA breakage.

Is there a way to detect ^Z or other terminal signals and propogate
them to the child in a better way?

-- 
- Alfred Perlstein
.- AMA, VMOA #5191, 03 vmax, 92 gs500, 85 ch250
.- FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: script1.diff
Type: text/x-diff
Size: 845 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20090917/82e219aa/script1.bin


More information about the freebsd-hackers mailing list