Path: csiph.com!goblin1!goblin.stu.neva.ru!usenet.stanford.edu!not-for-mail From: Enrique Soriano Newsgroups: gnu.bash.bug Subject: Re: Special parameter ? Date: Fri, 21 Sep 2018 18:05:39 +0200 Lines: 31 Approved: bug-bash@gnu.org Message-ID: References: <201809211123.w8LBNvHe018414@omac.gsyc.urjc.es> <20180921125705.646znyglxhb6rqga@eeg.ccf.org> <20180921151733.GA31947@ubuntu> NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1537545969 11187 208.118.235.17 (21 Sep 2018 16:06:09 GMT) X-Complaints-To: action@cs.stanford.edu To: bug-bash@gnu.org, bash@packages.debian.org Envelope-to: bug-bash@gnu.org X-Virus-Scanned: Debian amavisd-new at gsyc.urjc.es X-Gm-Message-State: APzg51DHuj7RpRAm4bdbC40D3a3iyOe0Qtmpv34K+g/2BJnIujKW7gvT Xpmy3kP/9vqymQ2/9ni6XKR3ajnwqW131aULR84= X-Google-Smtp-Source: ANB0VdavaO/IL7cU9MgglG9uu25mR5uEyApXqikwJWWjui+FHMaLZTHMfddOjbUtxigtMdxUcuVJVGBBRsvfB2WMW5Q= X-Received: by 2002:a9d:2e92:: with SMTP id w18-v6mr26628462ota.324.1537545950965; Fri, 21 Sep 2018 09:05:50 -0700 (PDT) In-Reply-To: <20180921151733.GA31947@ubuntu> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 193.147.79.64 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com gnu.bash.bug:14626 > The thing that creates the background job IS a foreground pipeline. It's = a foreground pipeline that creates a background > job, if that makes sense. Sure. That's the mechanism to implement the background job. The problem is that the user that reads the manual is dealing with the "background" and "foreground" abstractions; for him, the most recently foreground command in my example is false. > I recommend to store the value of $? in a variable if you plan on using i= t afterwards, since it's extremely easy to end > up overriding its value. Thanks, but I am not trying to implement anything. I am trying to fix the man page :) > You're right, but it might be less confusing if I removed the "foreground= " > from the description. This could help. --=20 Enrique Soriano Escuela Superior de Ingenier=C3=ADa de Telecomunicaci=C3=B3n, Universidad Rey Juan Carlos. Tel: 914888762 http://gsyc.urjc.es/~esoriano