zsh-workers
 help / color / mirror / code / Atom feed
* Non-patch for zftp
@ 1999-02-20 15:41 Peter Stephenson
  0 siblings, 0 replies; only message in thread
From: Peter Stephenson @ 1999-02-20 15:41 UTC (permalink / raw)
  To: Zsh hackers list

I've made some changes to zftp; since it applies to pws-8 and I'm about to
produce pws-9, it seems pointless to post it separately, but here is a list
of changes that will appear.

1. The functions in Misc/zftp-functions now avoid using zftp in subshells,
since I discovered that on Irix 6.2 it doesn't work --- the control fd is
invalid after a fork().  That's strange, since I vaguely thought I'd
originally tried it there and it did work.  However, I haven't been able to
track down any change which has affected this.  It's OK on every other OS
I've tested (the Linux box is currently down).

2. The zf* functions now have auto-open capability:  if the connection
times out, `zftp test' should be able to spot this and the functions will
transparently re-open the connection --- assuming you set it up in the
usual way with zfopen.  Also, if you explicitly close the connection, a
zfcd or zfdir will re-open it permanently while zfget will open it just for
that file grab (etc.).

3. There are more `return 6' statements in the source; 6 is the special
code for `don't even think about doing anything else', so this ought to
reduce the incidence of multiple error messages.

4. New Functions/Completion/_zftp:  currently this uses the old-style
completion functions zfget_match and zfcd_match, but it could be made
smarter.  (For example, prefix handling of directories can now be done as
if they were real directories.)

-- 
Peter Stephenson <pws@ibmth.df.unipi.it>       Tel: +39 050 844536
WWW:  http://www.ifh.de/~pws/
Dipartimento di Fisica, Via Buonarroti 2, 56127 Pisa, Italy


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1999-02-20 16:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-02-20 15:41 Non-patch for zftp Peter Stephenson

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).