This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: And now a problem with tcl
- From: Igor Pechtchanski <pechtcha at cs dot nyu dot edu>
- To: philippe guillaume <guillaume_pfr at yahoo dot fr>
- Cc: cygwin at cygwin dot com
- Date: Tue, 29 Jul 2003 12:16:13 -0400 (EDT)
- Subject: Re: And now a problem with tcl
- Reply-to: cygwin at cygwin dot com
On Tue, 29 Jul 2003, philippe guillaume wrote:
> I've been searching for a long time about this
> problem.
> The command runs normally on Unix but not on Cygwin :(
>
> The problem concerns a command button which runs a
> sh-script ...
> Here is the syntax :
>
> button .frPrincipal.thug\
> -activebackground "#beccbe" \
> -background "#d2e0d2" \
> -command {exec scriptsh &} \
> -cursor {hand1} \
> -font $font \
> -height {2} \
> -text {run scriptsh} \
> -width {22}
>
> The directory containing the scriptsh file is defined
> in the PATH both on Cygwin and Unix.
> But it runs on Unix and not on Cygwin.
> Actually, i must type "exec sh /home/.../scriptsh" to
> run it ...
>
> So please, what can i do solve this problem ?
IIRC, tcl doesn't understand POSIX paths. So, your solution (exec sh ...)
is correct (you could also most likely omit the full path from scriptsh,
i.e, use "exec sh scriptsh", provided scriptsh *is* in the PATH).
Igor
--
http://cs.nyu.edu/~pechtcha/
|\ _,,,---,,_ pechtcha@cs.nyu.edu
ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com
|,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D.
'---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow!
"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster." -- Patrick Naughton
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/