Ticket Change Details
Not logged in
Overview

Artifact ID: 84d82e2e2f687ed664dda1f1d761be5cc28d2a3a
Ticket: 3f0c73f2d2d08eb454339b49e4978f385bc4c385
diff-command with parameter doesn't work
User & Date: drh 2009-09-22 14:31:21
Changes

  1. comment changed to:
    <pre>
    > fossil set diff-command 'diff -u'
    > fossil diff
    ...
    sh: diff -u: command not found
    </pre>
    
    <hr><i>rwilson added on 2009-09-22 13:26:01:</i><br>
    this happens in windows too.
    
    <hr><i>drh added on 2009-09-22 14:30:57:</i><br>
    This broke when I "fixed" ticket [8d073be8808b] -
    <i>diff/editor/gdiff settings don't support paths with spaces</i>.
    The fix for [8d073be8808b] was put the entire "diff" command argument
    in double-quotes so that it is treated as a single entity by system().
    
    I suppose the right solution here is to require windows people with spaces
    in their pathnames to add their own double-quotes around those paths.
    Otherwise, there is no way (that I can see) to distinguish between spaces
    in pathnames and separate arguments in a command.