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

pwd cd ls - anyone ??

 [1/9] from: jason::cunliffe::verizon::net at: 19-Apr-2002 14:02


Has anyone written rebol equivalents of standard Unix commands cd, ls, pwd etc? I made some trivial additions to my user.r file pwd: :what-dir cd: :change-dir ls: :list-dir Now to add some familiar arguments for commands like: ls -l Thought I'd check here first.. thanks ./Jason

 [2/9] from: greggirwin:mindspring at: 19-Apr-2002 14:41


Hi Jason, << Has anyone written rebol equivalents of standard Unix commands cd, ls, pwd etc? >> Not me. Having fun building some other unix-inspired things though (awk, grep, wc, make). Most of the simple things can be emulated pretty easily, as you have done, but if people have favorite tools from the *nix world (I'm not a *nix guy BTW), I think it would be worth putting an object of together for the library. --Gregg

 [3/9] from: jason:cunliffe:verizon at: 19-Apr-2002 20:33


> Not me. Having fun building some other unix-inspired things though (awk, > grep, wc, make). Most of the simple things can be emulated pretty easily, as > you have done, but if people have favorite tools from the *nix world (I'm > not a *nix guy BTW), I think it would be worth putting an object of together > for the library.
Good idea. We gotta build them first. The recent thread on permissions is very helpful for good *nix emulation. What would be nice is a way to just drop back into *nix for example:
>> *nix on
-- Unix/Linux commands enabled
>> cd /var/log/httpd >> ls -la *
total 102437 -rw-r--r-- 1 root root 15018181 Apr 19 20:20 access_log -rw-r--r-- 1 root root 29735151 Apr 14 04:02 access_log.1 -rw-r--r-- 1 root root 21366565 Apr 7 04:02 access_log.2 -rw-r--r-- 1 root root 16358503 Mar 31 04:01 access_log.3 -rw-r--r-- 1 root root 18915088 Mar 24 04:02 access_log.4
>> httpd_log: ls -la *
--returns the result in a REBOL block or object ./Jason

 [4/9] from: riusa:email:it at: 20-Apr-2002 16:53


hi, since Rebol is a powerful system in console mode, I'm using my Rebol/Command licence to create a Rebol shell (I called it ReSH) to embed the power of Rebol with a file system management confortable, by adding many functions that no other shell has (since other shell are not programming languages!). I already implemented some interesting features. I hope to make a first official release within a couple of weeks. Is someone interested to help me? -----Messaggio originale----- Da: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]Per conto di Jason Cunliffe Inviato: Friday, April 19, 2002 8:02 PM A: [rebol-list--rebol--com] Oggetto: [REBOL] pwd cd ls - anyone ?? Has anyone written rebol equivalents of standard Unix commands cd, ls, pwd etc? I made some trivial additions to my user.r file pwd: :what-dir cd: :change-dir ls: :list-dir Now to add some familiar arguments for commands like: ls -l Thought I'd check here first.. thanks ./Jason -- To unsubscribe from this list, please send an email to [rebol-request--rebol--com] with "unsubscribe" in the subject, without the quotes. -- Prendi GRATIS l'email universale che... risparmia: http://www.email.it/f Sponsor: Se cerchi degli Integratori Alimentari allora Oliviero.it č il posto giusto per te.. Troverai gli integratori delle marche pių famose e i prezzi che ti stupiranno!! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=421&d=20-4

 [5/9] from: andreas:bolka:gmx at: 20-Apr-2002 18:16


Saturday, April 20, 2002, 4:53:42 PM, Alessandro wrote:
> since Rebol is a powerful system in console mode, I'm using my > Rebol/Command licence to create a Rebol shell (I called it ReSH) to > embed the power of Rebol with a file system management confortable, > by adding many functions that no other shell has (since other shell > are not programming languages!).
almost all good shells "are programming languages" :) an interesting project anyway! -- Best regards, Andreas mailto:[andreas--bolka--gmx--net]

 [6/9] from: g:santilli:tiscalinet:it at: 20-Apr-2002 21:11


Hi Alessandro, On Saturday, April 20, 2002, 4:53:42 PM, you wrote: AM> since Rebol is a powerful system in console mode, I'm using my Rebol/Command AM> licence to create a Rebol shell (I called it ReSH) to embed the power of I'd like to have a look. I have some ideas on a REBOL shell too, but as usual very few time to materialize them. :) Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [7/9] from: atruter:hih:au at: 22-Apr-2002 12:14


>I made some trivial additions to my user.r file >pwd: :what-dir >cd: :change-dir >ls: :list-dir
Some more trivial additions for you: mv: :rename rm: :delete vi: :editor cp: func [from to] [write/binary to read/binary from] Note that 'cp is already used by REBOL. Seems to be the same as 'copy and I haven't found any places where 'cp is used instead of 'copy . . . but you never know!? ;) Regards, Ashley

 [8/9] from: jason:cunliffe:verizon at: 21-Apr-2002 23:38


> Some more trivial additions for you: > mv: :rename
<<quoted lines omitted: 4>>
> haven't found any places where 'cp is used instead of 'copy . . . but you > never know!? ;)
Thanks Ashley ./Jason

 [9/9] from: anton:lexicon at: 22-Apr-2002 22:38


Interesting, I hadn't noticed 'cp was already used. But, you can't say editor is equivalent to vi ! :) Anton.

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