|
From: | Steffan Vigano |
Subject: | [wdiff-bugs] redirecting wdiff output inside a script |
Date: | Tue, 29 Mar 2011 16:12:38 -0700 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9 |
Hello,I hope I'm not missing something dumb, but I can't seem to get a simple redirect of wdiff inside a shell script to output the start and end markers of the changed sections. Works great from the command line, but the same command in a script doesn't. Example:
testbox[/]# wdiff file1 file2 > cmdout testbox[/]# cat cmdout one [-two-] three [-four-] {+five+} Same command inside this simple script: #!/bin/sh /usr/local/bin/wdiff /file1 /file2 > /scriptout Produces the following output file: testbox[/]# cat scriptout one three fiveI'm at a loss. I've tried the various available switches (-w -x, etc... -t, -p) all with no luck. Running wdiff 0.6.5 and diff 2.8.7 on FreeBSD 8.1.
Any ideas? Thanks -S
[Prev in Thread] | Current Thread | [Next in Thread] |