Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

...

 [1/18] from: anton:lexicon at: 12-Sep-2002 2:50


Is there any platform in which %.../ would mean the parent of the parent? ie. %one/two/three/.../ would resolve to be: %one/ I have never seen anything like this, just checking. In windows 2k, %... is not a valid file or directory name, and attempts to access it through dos, windows or rebol causes an access error. So I have another question: Is there any platform on which %... is a valid filename? (I suspect linux.) Anton.

 [2/18] from: carl:cybercraft at: 12-Sep-2002 8:52


On 12-Sep-02, Anton wrote:
> Is there any platform in which > %.../
<<quoted lines omitted: 12>>
>> write %... "Test" >> read %...
== "Test" Works fine for me. (: Amiga... -- Carl Read

 [3/18] from: jason:cunliffe:verizon at: 11-Sep-2002 19:16


I just noticed some other subtle funkiness...
>> what-dir
== %/C/rebol/view/
>> change-dir %../
== %/C/rebol/
>> what-dir
== %/C/rebol/ ok now try this
>> change-dir %.../
== %/C/rebol/view/.../
>> what-dir
== %/C/rebol/view/.../ But list-dir behaves quite correctly. It's just that rEBOL thinks of %.../ in a special way. For example:
>> type? %.../
== file!
>> type %..
** Script Error: type has no value ** Near: type %..
>> type %../
** Script Error: type has no value ** Near: type %../ ./Jason

 [4/18] from: jason:cunliffe:verizon at: 11-Sep-2002 19:22


oops! Very sorry about my hideous typo. Yes it's okay
>> type? %../
== file!
>> type? %.../
== file! ./Jason

 [5/18] from: carl:cybercraft at: 12-Sep-2002 17:38


On 12-Sep-02, Jason Cunliffe wrote:
> I just noticed some other subtle funkiness... >>> what-dir
<<quoted lines omitted: 8>>
>>> what-dir > == %/C/rebol/view/.../
Hmmm. What are three dots supposed to give? ...
>> what-dir
== %/Dev/View/
>> change-dir %./
== %/Dev/View/
>> change-dir %.../
** Access Error: Cannot open /Dev/View/.../ ** Near: change-dir %.../
>> change-dir %../
== %/Dev/
>> change-dir %../
== %/ That's on Amiga. Oh, have you a directory called ... in your view directory? -- Carl Read

 [6/18] from: anton:lexicon at: 12-Sep-2002 19:52


Anyone on linux? Anton.

 [7/18] from: joel:neely:fedex at: 12-Sep-2002 1:29


Hi, Anton, ... half a mo' while I reboot ...
>> list-dir %.../
** Access Error: Cannot open /home/jn/.../ ** Where: throw-on-error ** Near: list-dir %.../
>> change-dir %.../
** Access Error: Cannot open /home/jn/.../ ** Near: change-dir %.../ and the same thing happens on Mac OS/X (Core, of course). I must admit a preference for ../../ versus .../ on simple human engineering grounds: 1) it's more visually distinct (less easy to miss at a glance), 2) it's extensible. Combining those two, think about the likelihood of misreading something like ...../ versus ../../../../ (especially if .. is pronounced "parent" or "up"). -jn- Anton wrote:
> Anyone on linux? > > >>> what-dir
<<quoted lines omitted: 13>>
> > Hmmm. What are three dots supposed to give? ... > >
...
> > That's on Amiga. Oh, have you a directory called ... in your view > > directory?
-jn- -- Seen in a foreign hotel: Visitors are expected to complain at the office between 9 and 11 am daily. -- [krm--mail--ips--ca] joel<dot<neely<at<fedex<FIX<PUNCTUATION<dot<com

 [8/18] from: joel:neely:fedex at: 12-Sep-2002 1:35


Hi, Anton, ... half a mo' while I reboot ...
>> list-dir %.../
** Access Error: Cannot open /home/jn/.../ ** Where: throw-on-error ** Near: list-dir %.../
>> change-dir %.../
** Access Error: Cannot open /home/jn/.../ ** Near: change-dir %.../ and the same thing happens on Mac OS/X (Core, of course). I must admit a preference for ../../ versus .../ on simple human engineering grounds: 1) it's more visually distinct (less easy to miss at a glance), 2) it's extensible. Combining those two, think about the likelihood of misreading something like ...../ versus ../../../../ (especially if .. is pronounced "parent" or "up"). -jn- Anton wrote:
> Anyone on linux? > > >>> what-dir
<<quoted lines omitted: 13>>
> > Hmmm. What are three dots supposed to give? ... > >
...
> > That's on Amiga. Oh, have you a directory called ... in your view > > directory?
-jn- -- Sic biscuitus desintegrat. -- Ian Mitchell joel>FIX>PUNCTUATION>dot>neely>at>fedex>dot>com

 [9/18] from: carl:cybercraft at: 13-Sep-2002 0:25


On 12-Sep-02, Jason Cunliffe wrote:
>> Hmmm. What are three dots supposed to give? ... > .../ = ../../ = grandparent > ..../ = ../../../ = great grandparent > etc > If you are too close to root / you'll get an error.
Hmmm. It looks like REBOL's behaviour with this is very OS-dependant...
>> what-dir
== %/Dev/View/
>> change-dir %.../
** Access Error: Cannot open /Dev/View/.../ ** Near: change-dir %.../
>> what-dir
== %/Dev/View/
>> change-dir %../../
== %/ That's Amiga again. As someone requested, what happens with Linux? -- Carl Read

 [10/18] from: anton:lexicon at: 12-Sep-2002 22:39


I agree, Joel. Anton.

 [11/18] from: jason:cunliffe:verizon at: 12-Sep-2002 2:00


> Hmmm. What are three dots supposed to give? ...
.../ = ../../ = grandparent ..../ = ../../../ = great grandparent etc If you are too close to root / you'll get an error. ./Jason

 [12/18] from: jason:cunliffe:verizon at: 12-Sep-2002 10:49


%.../ won't work on Linux RedHat 7.2 or Debian/GNU either. Jason

 [13/18] from: carl:cybercraft at: 13-Sep-2002 8:59


On 13-Sep-02, Carl Read wrote:
> On 12-Sep-02, Jason Cunliffe wrote: >>> Hmmm. What are three dots supposed to give? ...
<<quoted lines omitted: 14>>
> == %/ > That's Amiga again. As someone requested, what happens with Linux?
Thinking more about this, I'd say REBOL decides the %.../ is not a valid attempt according to REBOL syntax to access a parent directory and so gives it to the OS to sort out, the OS either making sense of it or returning an error, which REBOL reports. Moral of the story - only use %../ %../../../ etc. in your REBOL scripts as a way of accessing parent directories. -- Carl Read

 [14/18] from: louisaturk:coxinet at: 2-Nov-2002 19:39


Hi rebols,
>> x: replace/all x #"=FF" #""
== [{Bi,bloj =FFbi,bloj =FFnnfs gene,sewj =FFge,nesij =FFngfs VIhsou/ =FFVIhsou/j =FFngms Cristou/( =FFCristo,j =FFngms ui`ou/ =FFui`o,j =FFng... Why didn't replace do it job? Note that #"=FF" is not #"y" How can I remove #"=FF" from this file? Thanks, Louis

 [15/18] from: jan:skibinski:sympatico:ca at: 4-Nov-2002 15:21


> >> x: replace/all x #"=FF" #"" > == [{Bi,bloj =FFbi,bloj =FFnnfs gene,sewj =FFge,nesij =FFngfs VIhsou/ =FFVIhsou/j > =FFngms Cristou/( =FFCristo,j =FFngms ui`ou/ =FFui`o,j =FFng... > > Why didn't replace do it job?
Remove the block from around the string. Jan

 [16/18] from: ingo:2b1 at: 4-Nov-2002 21:28


Hi Louis, Louis A. Turk wrote:
> Hi rebols, > > >> x: replace/all x #"=FF" #"" > == [{Bi,bloj =FFbi,bloj =FFnnfs gene,sewj =FFge,nesij =FFngfs VIhsou/ > =FFVIhsou/j =FFngms Cristou/( =FFCristo,j =FFngms ui`ou/ =FFui`o,j =FFng... > > Why didn't replace do it job?
Have a careful look at what x points at. It's a block! containing a string!. So, when you aim replace at 'x, it doesn't find the character #"=FF", but the string {Bi,bloj =FFbi,bloj =FFnnfs gene,sewj =FFge,nesij =FFn...}. To do what you want, the following will do the trick: y: replace/all first x #"=FF" #"" == {Bi,bloj ^@bi,bloj ^@nnfs gene,sewj ^@ge,nesij ^@ngfs VIhsou/ ^@VI} I hope that helps. Kind regards, Ingo

 [17/18] from: louisaturk:coxinet at: 4-Nov-2002 20:10


-- Unable to decode HTML file!! --

 [18/18] from: reboler:ifrance at: 29-Nov-2002 13:59


Hi Ingo, I have tested your patches.r and pat665 is back, I can't believe it! Ingo you're a genius ! However, I don't understand why others like Gabriele and Ladislav have correct posts without it. Ciao Patrick

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted