Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #39295
| From | Martin Gregorie <martin@mydomain.invalid> |
|---|---|
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: running java kills parent shell |
| Date | 2020-02-14 20:43 +0000 |
| Organization | A noiseless patient Spider |
| 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> |
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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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