[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: %read and %write



[i thought i had replied to this earlier; sorry for the delay.]

> Is there a way of directly doing read and write to fd's? It would be sort
> of nice to be able to open an fd and access it directly.

read, no, or, at least, not yet.  write, on the other hand, yes.  use echo  
with redirections.  it just works.

	; exec {>[4] foo}
	; ls -l foo
	-rw-r--r--  1 haahr          0 May  3 09:21 foo
	; echo hello, world >[1=4]
	; cat foo
	hello, world
	; echo goodbye, cruel world >[1=4]
	; cat foo
	hello, world
	goodbye, cruel world
	; exec {>[4=]}
	; cat foo
	hello, world
	goodbye, cruel world
	; 


paul