Closed Bug 373684 Opened 17 years ago Closed 16 years ago

xpcshell on MozillaBuild needs -i to provide js prompt

Categories

(Firefox Build System :: MozillaBuild, task)

x86
Windows XP
task
Not set
normal

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: WeirdAl, Unassigned)

References

Details

Without the -i parameter, we never get a js> prompt; xpcshell simply freezes.

Steps to reproduce:
(1) Build trunk on MozillaBuild for Windows.
(2) Within the MozillaBuild environment, chdir to dist/bin, execute |xpcshell -w -s|.

Pike suggested -i to make it work, and he's right.
This means that isatty() is returning the wrong value when launched from an msys shell. I wonder why.
Same thing happens from a cygwin shell. I recall it working OK if you're launching it from a windows cmd shell.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Duh on reload, reopening.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
It's worth mentioning that -i isn't documented:
http://www.mozilla.org/scriptable/XPCShell.html
So it turns out this is because msys (and cygwin) shells like rxvt uses windows pipes, which return false for isatty(). This sucks, but there's apparently no way around it. So we should just document the flag and move on with our puny little lives.

We could alternately run bash in a windows console, instead of rxvt, if that makes things better somehow.
Mass re-assign of MozillaBuild bugs into mozilla.org:MozillaBuild
Component: Build Config → MozillaBuild
Product: Core → mozilla.org
Version: unspecified → other
Status: REOPENED → NEW
QA Contact: build-config → mozillabuild
We switched to using the Windows console in MozillaBuild 1.3, so this works fine now.
Status: NEW → RESOLVED
Closed: 17 years ago16 years ago
Resolution: --- → WORKSFORME
Product: mozilla.org → Firefox Build System
You need to log in before you can comment on or make changes to this bug.