Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 755707

Summary: app-shells/dash-0.5.11.2: jobs in command substitution doesn't work (as if run in subshell)
Product: Gentoo Linux Reporter: Nikita Zlobin <cook60020tmp>
Component: Current packagesAssignee: Gentoo's Team for Core System packages <base-system>
Status: RESOLVED UPSTREAM    
Severity: normal CC: sam
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Nikita Zlobin 2020-11-20 12:41:00 UTC
Manual page jobs(1p) specifies such application use as $(jobs -p),
which seems to be the only way to get job pid somehow reused by saving
in a variable (this page itself also tells it's common to be
implemented as built-in).

It works bash, but not in dash (btw, dash doesn't even document it in own manual).
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-20 16:14:42 UTC
This seems like an upstream bug, no?
Comment 2 Mike Gilbert gentoo-dev 2020-11-20 18:34:10 UTC
Indeed.