From: Herbert Xu <herbert@gondor.apana.org.au>
To: Jeff King <peff@peff.net>
Cc: Szekeres Istvan <szekeres@iii.hu>, git@vger.kernel.org
Subject: Re: Bug: git-rebase goofs up \n in commit messages
Date: Sat, 26 May 2007 11:10:36 +1000 [thread overview]
Message-ID: <20070526011036.GA4169@gondor.apana.org.au> (raw)
In-Reply-To: <20070526004028.GA8940@sigill.intra.peff.net>
On Fri, May 25, 2007 at 08:40:28PM -0400, Jeff King wrote:
>
> Hmm. It even happens with this:
>
> bash$ export test=$(echo foo \\n bar)
> bash$ dash
> dash$ echo $test
> foo
> bar
>
> I'm not sure what the best workaround is. I am cc'ing Herbert Xu to see
> if he has any helpful comments.
If you need to echo something that may have escapes in it, the portable
way to do it is
printf '%s\n' "$test"
Cheers,
--
Visit Openswan at http://www.openswan.org/
Email: Herbert Xu ~{PmV>HI~} <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
next prev parent reply other threads:[~2007-05-26 1:10 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-25 21:11 Bug: git-rebase goofs up \n in commit messages Szekeres Istvan
2007-05-26 0:40 ` Jeff King
2007-05-26 1:10 ` Herbert Xu [this message]
2007-05-26 3:42 ` Jeff King
2007-05-26 3:59 ` Junio C Hamano
2007-05-26 4:59 ` Junio C Hamano
2007-05-26 6:07 ` Jeff King
2007-05-26 6:13 ` Junio C Hamano
2007-05-26 6:19 ` Herbert Xu
2007-05-26 6:27 ` Jeff King
2007-05-26 7:38 ` Herbert Xu
2007-05-26 7:47 ` Jeff King
2007-05-26 7:47 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20070526011036.GA4169@gondor.apana.org.au \
--to=herbert@gondor.apana.org.au \
--cc=git@vger.kernel.org \
--cc=peff@peff.net \
--cc=szekeres@iii.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).