GithubHelp home page GithubHelp logo

Comments (2)

junghans avatar junghans commented on August 25, 2024 1

Added as faea19a

from cwdiff.

lemzwerg avatar lemzwerg commented on August 25, 2024

Ping, please fix! I can confirm that this patch (as suggested by @hop) fixes the problem.

--- cwdiff~     2024-04-29 08:05:24.000000000 +0200
+++ cwdiff      2024-04-29 08:18:48.991783334 +0200
@@ -214,7 +214,7 @@
       # cut the last newline do avoid an empty line at the end (echo append newline)
       # echo -n would also work, but wdiff has strange behaviour if the 2nd file is
       # empty, it will not append newline, which make the output look strange
-      [[ $t1 || $t2 ]] && { wdiff "$wdiff_opts" ${RED:+-n} <(echo "${t1%$NL}") <(echo "${t2%$NL}") | color_filter; }
+      [[ $t1 || $t2 ]] && { wdiff $wdiff_opts ${RED:+-n} <(echo "${t1%$NL}") <(echo "${t2%$NL}") | color_filter; }
       t1=
       t2=
       [[ $diff = only ]] && echo "${i}" || echo "${i## }"
@@ -222,9 +222,9 @@
   done
   # thanks to Arne Babenhauserheide for pointing out this case is missing
   # if there was + or - lines at the end, which has not been printed yet
-  [[ $t1 || $t2 ]] && { wdiff "$wdiff_opts" ${RED:+-n} <(echo "${t1%$NL}") <(echo "${t2%$NL}") | color_filter; }
+  [[ $t1 || $t2 ]] && { wdiff $wdiff_opts ${RED:+-n} <(echo "${t1%$NL}") <(echo "${t2%$NL}") | color_filter; }
 elif [[ $filter ]]; then
   color_filter $1
 else
-  wdiff "$wdiff_opts" ${RED:+-n} "$1" "$2" | color_filter
+  wdiff $wdiff_opts ${RED:+-n} "$1" "$2" | color_filter
 fi

from cwdiff.

Related Issues (8)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.