Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #39295

Re: running java kills parent shell

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From Martin Gregorie <martin@mydomain.invalid>
Newsgroups comp.lang.java.programmer
Subject Re: running java kills parent shell
Date Fri, 14 Feb 2020 20:43:48 -0000 (UTC)
Organization A noiseless patient Spider
Lines 33
Message-ID <r270q4$st0$1@dont-email.me> (permalink)
References <c7b42f97-07e8-4899-85e5-a81153e140b4@googlegroups.com> <r20q9s$5gt$1@dont-email.me> <fe3df469-89b4-4dcd-808e-714891134802@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding 8bit
Injection-Date Fri, 14 Feb 2020 20:43:48 -0000 (UTC)
Injection-Info reader02.eternal-september.org; posting-host="5c0828f89abc12cb3c47769c1762d580"; logging-data="29600"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/64k3VdP4fmCJbO0V17O65i6LQ21fmNNo="
User-Agent Pan/0.146 (Hic habitat felicitas; 8107378 git@gitlab.gnome.org:GNOME/pan.git)
Cancel-Lock sha1:1G/cBzIS8PDRZ2t/TM1ZGaLZ9WU=
Xref csiph.com comp.lang.java.programmer:39295

Show key headers only | View raw


On Fri, 14 Feb 2020 10:53:46 -0800, luserdroog wrote:

> 
> So I guess it's something weird that the Emacs terminal is doing, and
> not bash per se.
>
Seems possible. Have you looked at the string returned by Scanner or 
tried piping the Java output into 'od':

java HelloWorld | od -t x1

Which should show something like:

0000000 48 65 6c 6c 6f 2c 20 57 6f 72 6c 64 0a

IOW, "Hello World" as a list of the hexadecimal character values 
terminated by LF. That should, at least show if any control characters 
are appended to the string.

I actually ran:  

echo "Hello, World" | od -t x1

which produced the line shown above. The initial 0000000 (the offset of 
the first character) followed by a line containing 0000015 (the offset of 
the start of the next line in octal notation. Makes me feel old - the 
last time I routinely used octal was writing assembler on ICL 1900 
mainframes.
 
-- 
Martin    | martin at
Gregorie  | gregorie dot org

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

running java kills parent shell luserdroog <luser.droog@gmail.com> - 2020-02-11 19:57 -0800
  Re: running java kills parent shell Martin Gregorie <martin@mydomain.invalid> - 2020-02-12 12:15 +0000
    Re: running java kills parent shell luserdroog <luser.droog@gmail.com> - 2020-02-14 10:53 -0800
      Re: running java kills parent shell Martin Gregorie <martin@mydomain.invalid> - 2020-02-14 20:43 +0000
        Re: running java kills parent shell luserdroog <luser.droog@gmail.com> - 2020-02-14 13:02 -0800
          Re: running java kills parent shell Martin Gregorie <martin@mydomain.invalid> - 2020-02-14 21:46 +0000
            Re: running java kills parent shell Arne Vajhøj <arne@vajhoej.dk> - 2020-02-14 19:39 -0500

csiph-web