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


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

Re: running java kills parent shell

Path csiph.com!aioe.org!.POSTED.O5hsyUvK01te0L/SZurVSQ.user.gioia.aioe.org!not-for-mail
From Arne Vajhøj <arne@vajhoej.dk>
Newsgroups comp.lang.java.programmer
Subject Re: running java kills parent shell
Date Fri, 14 Feb 2020 19:39:42 -0500
Organization Aioe.org NNTP Server
Lines 17
Message-ID <r27ekd$13ie$1@gioia.aioe.org> (permalink)
References <c7b42f97-07e8-4899-85e5-a81153e140b4@googlegroups.com> <r20q9s$5gt$1@dont-email.me> <fe3df469-89b4-4dcd-808e-714891134802@googlegroups.com> <r270q4$st0$1@dont-email.me> <8f61cfbe-6666-4a4a-b328-bb51016973da@googlegroups.com> <r274g2$ldt$1@dont-email.me>
NNTP-Posting-Host O5hsyUvK01te0L/SZurVSQ.user.gioia.aioe.org
Mime-Version 1.0
Content-Type text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding 8bit
X-Complaints-To abuse@aioe.org
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.5.0
X-Notice Filtered by postfilter v. 0.9.2
Content-Language en-US
Xref csiph.com comp.lang.java.programmer:39298

Show key headers only | View raw


On 2/14/2020 4:46 PM, Martin Gregorie wrote:
> I don't know whether knowledge of the local convention for, e.g. line
> ends, is compiled into the JVM or if it interrogates the OS to find out
> which version to use. In the first case, if LinuxForWindows uses LF like
> any other Linux/UNIX OS AND you're running a Windows JVM, you'd expect
> see exactly sort the problem you've got.

I don't know where Java get the default from, but you can see
the default by looking at:

System.getProperty("line.separator")

or since 1.7 also:

System.lineSeparator​()

Arne

Back to comp.lang.java.programmer | Previous | NextPrevious 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