zsh-users
 help / color / mirror / code / Atom feed
* Re: A peep into the future.
@ 1996-06-04 11:21 Bruce Stephens
  0 siblings, 0 replies; 5+ messages in thread
From: Bruce Stephens @ 1996-06-04 11:21 UTC (permalink / raw)
  To: zsh-users

Vincent Lefevre writes:

> >     if you say "foo > Important_file", zsh checks to see if there
> >     is anything on the stdout of foo, if not (say foo is
> >     non-existent), zsh leaves the Imp_file as it is.
>
> Not a good idea. Sometimes I use this to clear a (temporary) file.
> You can set NO_CLOBBER. But sometimes it is not sufficient, e.g.
> one use >| then one types a wrong file name. So I'd prefer to have
> an automatical backup, e.g. "Important_file" is renamed to
> "Important_file.bak".

What, just add ".bak"?  It's a good idea, in principle, and I'm
surprised it's not been done.  But if it's to be done, then it ought to
follow the same conventions as some (but not all, alas) of the GNU
utilities, I think, in particular the file utilities.  Two or three
environment variables define the behaviour, which allows you to use
either simple backups or numbered backups, and if you use numbered
backups you can select how many to keep.
--
Bruce Stephens                  | email: B.Stephens@math.ruu.nl
Utrecht University              | telephone: +31 30 2534630
Department of Mathematics       | telefax:   +31 30 2518394
P.O. Box 80010, 3508 TA Utrecht |
The Netherlands                 |



^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <9606040242.AA02989@juno.venus.hclt.com>]

end of thread, other threads:[~1996-06-04 20:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1996-06-04 11:21 A peep into the future Bruce Stephens
     [not found] <9606040242.AA02989@juno.venus.hclt.com>
1996-06-04 10:27 ` Zefram
1996-06-04 20:37   ` Zoltan Hidvegi
1996-06-04 10:46 ` Mark Devlin
1996-06-04 11:11 ` Vincent Lefevre

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).