[Jprogramming] path separator
Ric Sherlock
tikkanz at gmail.com
Wed Nov 30 04:25:39 HKT 2011
The point is that PATHSEP_j_ isn't defined by default when you boot up
a new session in J7. So it can't be counted on for
cross-platform/version development.
I don't have all the addons installed but a find in files on my
~system and ~addons folders only finds one place the noun PATHSEP is
assigned a value is in ~addons/ide/jhs/jfif.ijs where it is assigned
PATHSEP=: '/'
2011/11/30 Björn Helgason <gosinn at gmail.com>:
> You can find PATHSEP here and there in J701
>
> PATHSEP=: '/\'{~6=9!:12''
>
> 2011/11/29 Ric Sherlock <tikkanz at gmail.com>
>
>> PATHSEP_j_ is v6 specific (or at least pre-J7 specific). In J6 it was
>> set at the beginning of the J bootup, based on your operating system
>> and other utilities were then defined in terms of PATHSEP_j_ (e.g.
>> jhostpath). With the decision to standardize on '/' as the path
>> separator for all OSs in J7 PATHSEP_j_ was no longer necessary.
>>
>> Unfortunately there are still some foreign conjunctions in J7 that
>> return '\' as the path separator on Windows.
>>
>> 2011/11/30 Björn Helgason <gosinn at gmail.com>:
>> > PATHSEP is in J601 as well as J602 and J701
>> >
>> > 2011/11/29 Tracy Harms <kaleidic at gmail.com>
>> >
>> >> How does the noun PATHSEP_j_ relate to this discussion? Is it v6
>> specific,
>> >> or valid for both v6 and v7?
>> >>
>> >> On Mon, Nov 28, 2011 at 6:06 PM, Ric Sherlock <tikkanz at gmail.com>
>> wrote:
>> >>
>> >> > I wasn't aware that it had made it into j602, but see that it is
>> >> > indeed now a cover of jhostpath in J6. So jpathsep should enable you
>> >> > to force any path to use the "standard" path separator expected by any
>> >> > particular combination of J version (6 or 7) and OS.
>> >> >
>> >> >
>> >> ----------------------------------------------------------------------
>> >> For information about J forums see http://www.jsoftware.com/forums.htm
>> >>
>> >
>> >
>> >
>> > --
>> > Björn Helgason, Verkfræðingur
>> > Fornustekkum II
>> > 781 Hornafirði,
>> > t-póst: gosinn at gmail.com
>> > gsm: +3546985532
>> > twitter: @flugfiskur
>> > http://groups.google.com/group/J-Programming
>> >
>> >
>> > Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
>> >
>> > góður kennari getur stigið á tær án þess að glansinn fari af skónum
>> > /|_ .-----------------------------------.
>> > ,' .\ / | Með léttri lund verður |
>> > ,--' _,' | Dagurinn í dag |
>> > / / | Enn betri en gærdagurinn |
>> > ( -. | `-----------------------------------'
>> > | ) | (\_ _/)
>> > (`-. '--.) (='.'=) ♖♘♗♕♔♙
>> > `. )----' (")_(") ☃☠
>> > ----------------------------------------------------------------------
>> > For information about J forums see http://www.jsoftware.com/forums.htm
>> ----------------------------------------------------------------------
>> For information about J forums see http://www.jsoftware.com/forums.htm
>>
>
>
>
> --
> Björn Helgason, Verkfræðingur
> Fornustekkum II
> 781 Hornafirði,
> t-póst: gosinn at gmail.com
> gsm: +3546985532
> twitter: @flugfiskur
> http://groups.google.com/group/J-Programming
>
>
> Tæknikunnátta höndlar hið flókna, sköpunargáfa er meistari einfaldleikans
>
> góður kennari getur stigið á tær án þess að glansinn fari af skónum
> /|_ .-----------------------------------.
> ,' .\ / | Með léttri lund verður |
> ,--' _,' | Dagurinn í dag |
> / / | Enn betri en gærdagurinn |
> ( -. | `-----------------------------------'
> | ) | (\_ _/)
> (`-. '--.) (='.'=) ♖♘♗♕♔♙
> `. )----' (")_(") ☃☠
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm
More information about the Programming
mailing list