Re: [9fans] ftpfs shows empty /n/ftp after login

2015-06-27 Thread David du Colombier
What version of 9vx are you using? I'm using version 0.12, from here: https://swtch.com/9vx/ This is a pretty old version (2009), which have known issues. Later, Yiyus and Ron Minnich made a lot of improvements. I would recommend you to use this repository: https://github.com/0intro/vx32 --

Re: [9fans] ftpfs shows empty /n/ftp after login

2015-06-27 Thread Nils M Holm
On 2015-06-26T12:00:36+0200, David du Colombier wrote: This was my first choice but, unfortunately, 9vx crashes on my machine as soon as I try to do something interesting, e.g. compile a program with 8c. What version of 9vx are you using? I'm using version 0.12, from here:

Re: [9fans] Basic limbo programming help

2015-06-27 Thread Charles Forsyth
On 27 June 2015 at 05:58, Roswell Grey orangecal...@gmail.com wrote: So, if there are any limbo programmers out there, would you mind giving me a hand? I'll have a look at your example. The online doc was tested at the time, but perhaps something else changed after that. There's a dedicated

Re: [9fans] Basic limbo programming help

2015-06-27 Thread Charles Forsyth
On 27 June 2015 at 11:35, Charles Forsyth charles.fors...@gmail.com wrote: The online doc was tested at the time, but perhaps something else changed after that. Use the examples in /doc/descent/descent.pdf (/doc/descent/descent.ms), which was updated to reflect language and window system

Re: [9fans] thank you

2015-06-27 Thread Antonio Barrones
Hi, The First Unix port was made in 1977 by Richard Miller in the Computing Science Department at the University of Wollongong. http://www.uow.edu.au/content/groups/public/@web/@inf/@scsse/documents/doc/uow103747.pdf

Re: [9fans] Trying to override 'cd' command

2015-06-27 Thread Neven Sajko
From the manual: -l If -l is given or the first character of argument zero is -, rc reads commands from $home/lib/profile, if it exists, before reading its normal input. Does this help you?

Re: [9fans] Trying to override 'cd' command

2015-06-27 Thread Ryan Gonzalez
I think so... So, in order to get my cd command, I enter '-' at the rc prompt? Is there some way for that to happen automatically? On June 27, 2015 8:34:24 AM CDT, Neven Sajko nsa...@gmail.com wrote: From the manual: -l If -l is given or the first character of argument

Re: [9fans] ftpfs shows empty /n/ftp after login

2015-06-27 Thread Nils M Holm
On 2015-06-27T11:54:58+0200, David du Colombier wrote: I'm using version 0.12, from here: https://swtch.com/9vx/ This is a pretty old version (2009), which have known issues. Later, Yiyus and Ron Minnich made a lot of improvements. I would recommend you to use this repository:

Re: [9fans] Help with interrupting fgetc()

2015-06-27 Thread Charles Forsyth
On 27 June 2015 at 21:30, Nils M Holm n...@t3x.org wrote: if (!strcmp(s, interrupt)) { A minor stylistic point: Plan 9 code almost invariably uses if(strcmp(...) == 0), and for pointers if(p == nil) instead of if(!p). if(!!...) is never used.

Re: [9fans] Help with interrupting fgetc()

2015-06-27 Thread Nils M Holm
On 2015-06-27T22:12:09+0100, Charles Forsyth wrote: On 27 June 2015 at 21:30, Nils M Holm n...@t3x.org wrote: if (!strcmp(s, interrupt)) { A minor stylistic point: Plan 9 code almost invariably uses if(strcmp(...) == 0), and for pointers if(p == nil) instead of if(!p).

Re: [9fans] thank you

2015-06-27 Thread Andrés Domínguez
2015-06-27 12:41 GMT+02:00 Antonio Barrones antonio@gmail.com: The First Unix port was made in 1977 by Richard Miller in the Computing Science Department at the University of Wollongong. http://www.uow.edu.au/content/groups/public/@web/@inf/@scsse/documents/doc/uow103747.pdf

Re: [9fans] Trying to override 'cd' command

2015-06-27 Thread Teodoro Santoni
On Sat, Jun 27, 2015 at 11:55:32AM -0500, Ryan Gonzalez wrote: I think so... So, in order to get my cd command, I enter '-' at the rc prompt? Is there some way for that to happen automatically? On June 27, 2015 8:34:24 AM CDT, Neven Sajko nsa...@gmail.com wrote: From the manual:

Re: [9fans] Help with interrupting fgetc()

2015-06-27 Thread Charles Forsyth
On 27 June 2015 at 21:30, Nils M Holm n...@t3x.org wrote: It should keep echoing after printing oopsie, but it just exits instead. What am I missing? if interrupted, fgetc returns EOF because the underlying read system call returns -1 (with error string interrupted). System calls are

Re: [9fans] Help with interrupting fgetc()

2015-06-27 Thread erik quanstrom
two additional points. I the style for note matching is strstr matching because the exact string can't be counted on. for example details may be added. also the bio(2) library and peint(2) areusually used instead of stdio. - erik On Jun 27, 2015 1:30 PM, Nils M Holm n...@t3x.org wrote:

[9fans] Help with interrupting fgetc()

2015-06-27 Thread Nils M Holm
I'm trying to get the DEL key to cause an error in an interpreter I'm writing. On Unix, I just catch SIGINT and set an error flag that causes the interpreter to return to the REPL. On Plan9, fgetc() seems to return EOF after catching an interrupted note. To make a long story short, I expected