From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <44242BAF.1080201@lanl.gov> Date: Fri, 24 Mar 2006 10:26:07 -0700 From: Ronald G Minnich User-Agent: Mozilla Thunderbird 1.0.7-1.1.fc4 (X11/20050929) MIME-Version: 1.0 To: Fans of the OS Plan 9 from Bell Labs <9fans@cse.psu.edu> Subject: Re: [9fans] rc question References: <1c146fcd200ff99cceed6495391ae5be@quanstro.net> In-Reply-To: <1c146fcd200ff99cceed6495391ae5be@quanstro.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Topicbox-Message-UUID: 1f3178bc-ead1-11e9-9d60-3106f5b1d025 erik quanstrom wrote: > i think you're making this too complicated. you wouldn't want > to use <> with a real file. a fileserver like ndb/dns often ignores seeks. > why use a non-default file descriptor? > > why wouldn't this work? > > <> /net/dns { echo google.com ip >[1=0] ; cat} > > if you have a fileserver that does not ignore seeks, then this would work > > <> fspath { echo cmd ; syscall seek 0 0 0; cat} > actually, this also probably reads better in Martian :-) ron