Description of problem: xterm will not honor -e option if -into option is used. Version-Release number of selected component (if applicable): xterm-179-5.EL How reproducible: Every Time. Steps to Reproduce: Enter: 1.wish 2.toplevel .ac -container 1 3.exec xterm -into [expr [winfo id .ac ] ] -e vim & (the expr above has the effect of converting the window ID from hex notation to decimal.) Actual results: As if you only did exec xterm -into [expr [winfo id .ac ] ] Expected results: Would like to see vim in the window. Additional info: The "break" on line 1966 should be a "continue" like all previous options except "e". The "break" makes sense for the "e" option because, as documented, it must be the last option if it is used. case 'i': if (argc <= 1) { Syntax(*argv); } else { char *endPtr; --argc; ++argv; winToEmbedInto = (Window) strtol(argv[0], &endPtr, 10); } break; <<< Make this continue; I've tested this fix on fedora where it is also needed.
The above code snippet refers to main.c
That's a useful bug report, but (I should add it to my FAQ), Redhat rarely forwards them upstream. Having said that, there's no reason for Mike Harris to paste in the boilerplate comment that you will note in most of the other reports for xterm.
Hi Thomas, The fix above appears to be correct after a preliminary review of the option processing. I'll add the patch to my next xterm build, if you approve the fix. I'm going to be doing a few erratum soon for FC1, and could add in xterm as well, since it is such a simple fix. Thanks guys!
the fix looks right to me, too.
I added this fix to xterm #191
Queued fix for next xterm build for RHEL3. Thanks guys.
Updated xterm to version 191 in rawhide for FC3. Patch still queued for future RHEL3 update.
Fixed in xterm-179-5.EL.1, scheduled for potential inclusion in RHEL3U6. Setting status to MODIFIED.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on the solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2006-0422.html