Closed Bug 307526 Opened 19 years ago Closed 19 years ago

should be possible to use xpcshell from cygwin apps, including cygwin xemacs

Categories

(Core :: XPConnect, defect, P3)

x86
Windows XP
defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: dmosedale, Assigned: mrbkap)

Details

Attachments

(1 file, 4 obsolete files)

Attached patch add -t switch to xpcshell (obsolete) — Splinter Review
The problem here is that isatty() returns no when handed a cygwin pipe.  This
patch adds a -t switch.  This switch behaves identically to -f, except that
isatty() is assumed to be true for any files specified this way.  So now
specifying "-f file1 -f file2 -t -" allows for mixed constructs.
Attachment #195287 - Flags: superreview?(shaver)
Attachment #195287 - Flags: review?(mrbkap)
Attached patch alternative: use - instead of -t (obsolete) — Splinter Review
Dan, this is closer to what I was talking about. I think that - should just
signal us to force tty.
Comment on attachment 195287 [details] [diff] [review]
add -t switch to xpcshell

Blake is consing up a new patch.
Attachment #195287 - Flags: superreview?(shaver)
Attachment #195287 - Flags: review?(mrbkap)
Attached patch use -i to force tty (obsolete) — Splinter Review
Try this one on for size.
Assignee: dmose → mrbkap
Attachment #195287 - Attachment is obsolete: true
Attachment #195295 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attached patch -i patch, v2 (obsolete) — Splinter Review
This seems to make "xpcshell -i" work correctly.  I haven't tested without the
-i.  JS shell may need an analogous fix.
Attachment #195349 - Attachment is obsolete: true
Comment on attachment 195828 [details] [diff] [review]
-i patch, v2

If you pass a filename and -i it looks like we'll leak the file that we open. Altnernative in a bit.
Attachment #195828 - Flags: review-
Priority: -- → P3
Target Milestone: --- → mozilla1.9alpha
This simply disallows using -i and a filename. Easier on all.

Also the #if 0 stuff is wrong in the oom case, so we should remove it.
Attachment #195828 - Attachment is obsolete: true
Attachment #202575 - Flags: superreview?(brendan)
Attachment #202575 - Flags: review?(dmose)
Comment on attachment 202575 [details] [diff] [review]
Don't allow -i script.js

>+        case 'i':
>+            forceTTY = JS_TRUE;
>+            isInteractive = JS_TRUE;

Chain these assignments, and sr=me contingent on dmose's r+.

/be
Attachment #202575 - Flags: superreview?(brendan) → superreview+
Comment on attachment 202575 [details] [diff] [review]
Don't allow -i script.js

r=dmose
Attachment #202575 - Flags: review?(dmose) → review+
Fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: