NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: bin/57894: sh(1): PID obtained with jobs -p is always 0 on NetBSD 10.0 RC



The following reply was made to PR bin/57894; it has been noted by GNATS.

From: Robert Elz <kre%munnari.OZ.AU@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: bin/57894: sh(1): PID obtained with jobs -p is always 0 on NetBSD 10.0 RC
Date: Thu, 01 Feb 2024 02:41:19 +0700

     Date:        Tue, 30 Jan 2024 23:20:01 +0000 (UTC)
     From:        Koichi Nakashima <koichi%nksm.name@localhost>
     Message-ID:  <20240130232001.A179D1A9239%mollari.NetBSD.org@localhost>
 
   |  Thanks for the fixing and the detailed explanation.
   |  My concern was backward compatibility.
 
 No problem, and thanks for finding that, it wasn't an intended change.
 
   |  I probably won't use the jobs command with
   |  non-interactive shells (unless it is absolutely necessary).
 
 It has one simple use there, which is sometimes worth knowing (not -p)
 "jobs >/dev/null" is a simple way of cleaning up all terminated async
 processes, if you don't care about their exit status, and don't want
 any possibility of hanging waiting for something to finish.
 
 Most other potential uses are generally better handled some other way.
 
 kre
 


Home | Main Index | Thread Index | Old Index