Fix 'diff --remove' invocation inside 'diff --local-patch'.
authorW Trevor King <wking@borg3.physics.drexel.edu>
Wed, 30 Nov 2011 15:34:37 +0000 (10:34 -0500)
committerW Trevor King <wking@borg3.physics.drexel.edu>
Wed, 30 Nov 2011 15:34:37 +0000 (10:34 -0500)
dotfiles.sh

index e637bf018a4bda793e6c9d153ba78aa40de36abb..d9a6876a71dc76e14822ea2465e54fc19eb5d07c 100755 (executable)
@@ -379,7 +379,7 @@ function diff()
                exec 3<&1     # save stdout to file descriptor 3
                echo "save local removed to ${REPO}/local-patch/000-local.remove"
                exec 1>"${REPO}/local-patch/000-local.remove"  # redirect stdout
                exec 3<&1     # save stdout to file descriptor 3
                echo "save local removed to ${REPO}/local-patch/000-local.remove"
                exec 1>"${REPO}/local-patch/000-local.remove"  # redirect stdout
-               diff "${REPO}" --removed
+               diff --removed "${REPO}"
                exec 1<&3     # restore old stdout
                exec 3<&-     # close temporary fd 3
                return
                exec 1<&3     # restore old stdout
                exec 3<&-     # close temporary fd 3
                return