simon-git: xcopy (master): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Wed Apr 17 22:44:03 BST 2019


TL;DR:
  9ed2ff7 Support specifying input and output files.

Repository:     https://git.tartarus.org/simon/xcopy.git
On the web:     https://git.tartarus.org/?p=simon/xcopy.git
Branch updated: master
Committer:      Simon Tatham <anakin at pobox.com>
Date:           2019-04-17 22:44:03

commit 9ed2ff7309e220eeac85a64272c5518dbb471ae2
web diff https://git.tartarus.org/?p=simon/xcopy.git;a=commitdiff;h=9ed2ff7309e220eeac85a64272c5518dbb471ae2;hp=d36fc9043d407ff61b1a8b8fd29402bd2fb40e12
Author: Simon Tatham <anakin at pobox.com>
Date:   Wed Apr 17 22:43:48 2019 +0100

    Support specifying input and output files.
    
    I tend to think this is generally a good idea: it's fine for a program
    to _default_ to talking to standard I/O, but generally, they should
    also be able to talk to input and/or output files named on the command
    line, because that makes it easier to run them in unusual situations,
    e.g. wrapped in a logging tool or a debugger whose output you might
    need to redirect independently of the wrapped tool.
    
    So, xcopy -r can now take an '-o outfile' option, and xcopy without -r
    can take a positional argument giving an input file.

 xcopy.c | 82 ++++++++++++++++++++++++++++++++++++++++++++++++++++-------------
 1 file changed, 66 insertions(+), 16 deletions(-)



More information about the tartarus-commits mailing list