Thread (25 messages) flat view 25 messages, 2 authors, 2016-06-15

Re: [PATCH 20/20] gettextize: git-am printf(1) message to eval_gettext

From: Jonathan Nieder <hidden>
Date: 2016-06-15 22:49:30

Hi,

Ævar Arnfjörð Bjarmason wrote:
quoted hunk ↗ jump to hunk
+++ b/git-am.sh
@@ -778,7 +778,7 @@ did you forget to use 'git add'?"; echo
       fi
       if test $apply_status != 0
       then
-               printf 'Patch failed at %s %s\n' "$msgnum" "$FIRSTLINE"
+               echo "$(eval_gettext "Patch failed at \$msgnum \$FIRSTLINE")"
Probably I am missing something silly, but why not just:

        eval_gettext 'Patch failed at $msgnum $FIRSTLINE\n'

? I ask because it is nice to be able to avoid "echo" with arbitrary
data: special characters (e.g. \) can make for portability hassles.

Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help