[Xquartz-dev] Problem with redirection running wish script from Xquartz Menu

Jeremy Huddleston Sequoia jeremyhu at apple.com
Wed Oct 31 09:27:25 PDT 2012


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 <dwcote at 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: dwcote at yahoo.com
> 
> 
> 
> 
> 
> _______________________________________________
> Xquartz-dev mailing list
> Xquartz-dev at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo/xquartz-dev



More information about the Xquartz-dev mailing list