tclsh 8.6

View: New views
3 Messages — Rating Filter:   Alert me  

tclsh 8.6

by Philip Aker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Using the tclsh created from the Tcl 8.6 source, if I type

% parray tcl_platform

I see:

tcl_platform(pathSeparator) = :

I'm wondering why it isn't a slash.

I see it set in tclUnixInit.c in the TclpSetVariables() function:

Tcl_SetVar2( interp, "tcl_platform", "pathSeparator", ":",  
TCL_GLOBAL_ONLY );


Philip Aker
echo astwta@...@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: tclsh 8.6

by Steve Landers :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


On 29/08/2009, at 3:47 PM, Philip Aker wrote:

> Using the tclsh created from the Tcl 8.6 source, if I type
>
> % parray tcl_platform
>
> I see:
>
> tcl_platform(pathSeparator) = :
>
> I'm wondering why it isn't a slash.

echo $PATH holds the clue

Steve


>
> I see it set in tclUnixInit.c in the TclpSetVariables() function:
>
> Tcl_SetVar2( interp, "tcl_platform", "pathSeparator", ":",
> TCL_GLOBAL_ONLY );
>
>
> Philip Aker
> echo astwta@...@nl | tr a-z@. p-za-o.@
>
> Democracy: Two wolves and a sheep voting on lunch.
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008  
> 30-Day
> trial. Simplify your report design, integration and deployment - and  
> focus on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> Tcl-mac mailing list
> tcl-mac@...
> https://lists.sourceforge.net/lists/listinfo/tcl-mac


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac

Re: tclsh 8.6

by Philip Aker-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 2009-08-29, at 00:54:43, Steve Landers wrote:

>> Using the tclsh created from the Tcl 8.6 source, if I type
>>
>> % parray tcl_platform
>>
>> I see:
>>
>> tcl_platform(pathSeparator) = :
>>
>> I'm wondering why it isn't a slash.

> echo $PATH holds the clue

I see and thanks. Where is it defined on Mac OS X? I don't see it near  
_CS_PATH.

Due to a Mac heritage and AppleScript, I find it ambiguously named  
because the environment variable is (as you've shown) "PATH" not  
"path". Therefore I think it should be named something like:

        tcl_platform( envPATHSeparator)

but would guess it's a fait accompli and will never change.


Philip Aker
echo astwta@...@nl | tr a-z@. p-za-o.@

Democracy: Two wolves and a sheep voting on lunch.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Tcl-mac mailing list
tcl-mac@...
https://lists.sourceforge.net/lists/listinfo/tcl-mac