git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Randall S. Becker" <rsbecker@nexbridge.com>
To: <git@vger.kernel.org>
Subject: RE: t0025 weird behaviour on NonStop ksh/bash
Date: Fri, 8 May 2015 22:46:43 -0400	[thread overview]
Message-ID: <004d01d08a02$627bc2b0$27734810$@nexbridge.com> (raw)
In-Reply-To: 

On May 8, 2015 7:17 PM , I wrote in my haste:
> Ok, I'm sure that this is not a git problem, but there is an assumption
about
> echo behaviour in t0025 that may not be correct. When executed from a
shell
> function on the HP NonStop platform under ksh and bash, the LFonly file
> annoyingly contains cr-lf not just lf. This causes sub-test 4 to fail.
Weirdly, this
> does not happen from an interactive shell. My proposed solution, in
t0025-crlf-
> auto.sh, to this is to make it explicit that bad behaviour on the part of
echo
> should be dealt with severely, as in:
> 
>         for w in Hello world how are you; do echo $w; done | tr -d '\r'
>LFonly
> 
> instead of
> 
>         for w in Hello world how are you; do echo $w; done >LFonly
> 
> which is a no-op on platforms that behave themselves in this situation. Is
this
> the proper approach?

Digging deeper, this appears to be is Yet Another Platform Problem. There
are more '\r' characters sneaking about beyond just echo. I am taking it up
with other developers to see whether we can track down where the offending
'\r' characters are coming from. They do not appear to be from git or its
tests at this stage

Cheers,
Randall

-- Brief whoami: NonStop&UNIX developer since approximately
UNIX(421664400)/NonStop(211288444200000000)
-- In my real life, I talk too much.

.

             reply	other threads:[~2015-05-09  2:46 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-09  2:46 Randall S. Becker [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-08 23:17 t0025 weird behaviour on NonStop ksh/bash Randall S. Becker
2015-05-09  2:50 ` Junio C Hamano
2015-05-09  3:11   ` Randall S. Becker

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='004d01d08a02$627bc2b0$27734810$@nexbridge.com' \
    --to=rsbecker@nexbridge.com \
    --cc=git@vger.kernel.org \
    /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).