Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: ztcp



 --- Clint Adams <clint@xxxxxxx> wrote: >
> 
> I had imagined that you could do something like 'exec 9<&$REPLY'
> if you wanted to pick the fd.  Unfortunately this doesn't
> update the session table.

I think it is better as Bart suggested with the option to specify a
choice of fd because for everything else, you need to manage fd numbers
yourself.

What might be quite useful though is some sort of special variable
which would generate an unused fd number so you can do something like:
  ztcp -u ${fd:=$NEWFD} host:port
and then use $fd thereafter for the file descriptor.

> > Incidentally, I did mention your objection to /dev/tcp/portname on
> the
> > shell mailing list, but the response was that several unix variants
> 
> Hmm.  Is there a spec yet, or is bash just the reference
implementation? 

I doubt there will be any spec for quite some time. I also doubt that
bash or any other particular shell will be declared the reference
implementation though any new feature will need at least one
implementation.

Oliver

____________________________________________________________
Do You Yahoo!?
Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk
or your free @yahoo.ie address at http://mail.yahoo.ie



Messages sorted by: Reverse Date, Date, Thread, Author