Can you be a little more specific about what you're trying to do? What makes you think the problem is the redirection of stdout? You mention redirection from the XQuartz menu and Finder, but your statement doesn't have any redirection, and I'm not sure what you're doing with Finder.
Is the problem actually that isatty() is false? This sounds more like a bug in xprompt.tcl. --Jeremy On Oct 30, 2012, at 11:10 PM, Daniel Cote <dwc...@yahoo.com> wrote: > I'm running Mac OS X Mountain Lion Version 10.8.2 on a mac mini intel based. > When I run my tcl script from an xterm command line it works fine but when I > run it from the finder or the Xquartz menu it does't work. The problem seems > to be redirection of stdout. The following statement is where it fails: > > YEAR=`/usr/local/bin/xprompt.tcl -P "Enter Year(YYYY)? " -D "$THISYEAR"` > > The statement works fine from the command line of an xterm but doesn't work > from the Xquartz menu or the finder. Redirection of stdout doesn't seem to > work from the Xquartz menu or the finder. This same script works fine under > linux. Any ideas? > > 186,000 MPS isn't just a good idea, It's the law. > > Daniel W. Cote > > Email: dwc...@yahoo.com > > > > > > _______________________________________________ > Xquartz-dev mailing list > Xquartz-dev@lists.macosforge.org > http://lists.macosforge.org/mailman/listinfo/xquartz-dev _______________________________________________ Xquartz-dev mailing list Xquartz-dev@lists.macosforge.org http://lists.macosforge.org/mailman/listinfo/xquartz-dev