simon-git: bob (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Tue Nov 17 18:40:42 GMT 2015
TL;DR:
b279b19 New bob command: 'in DIR do/win COMMAND'.
Repository: git://git.tartarus.org/simon/bob.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=bob.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2015-11-17 18:40:42
commit b279b19448e8751c237e809cd3235aec43c34b1f
web diff http://tartarus.org/~simon-git/gitweb/?p=bob.git;a=commitdiff;h=b279b19448e8751c237e809cd3235aec43c34b1f;hp=6f917a6292ce91335e54e512baa0f260d57d84ae
Author: Simon Tatham <anakin at pobox.com>
Date: Tue Nov 17 18:15:25 2015 +0000
New bob command: 'in DIR do/win COMMAND'.
Just like 'in DIR do COMMAND', but arranges for COMMAND to be
interpreted using only Windows command-line quoting, so you no longer
have to worry about getting the Windows command line you wanted
through a layer of POSIX quoting followed by whatever weirdness Cygwin
does to turn a sequence of argv words into the input to cmd /c.
Also, once I rewrite all my Windows delegations to use this, it'll be
possible to write a Windows-native bob-delegate-server that doesn't
need Cygwin at all, though right now I don't have any immediate need
to do so.
Implemented by writing the command out into a temporary batch file and
running that. The batch file is left in the directory DIR specified in
the command, which is a bit ugly but saves me having to figure out how
many ..\ to add (or which kind of slash to use).
bob-delegate-server | 16 +++++++++++++---
bob.but | 7 +++++++
script.py | 11 ++++++++++-
3 files changed, 30 insertions(+), 4 deletions(-)
More information about the tartarus-commits
mailing list