docker-bash icon indicating copy to clipboard operation
docker-bash copied to clipboard

bash 4.4: `jobs` is unavailable

Open jansorg opened this issue 1 year ago • 2 comments

For bashdb, we were executing tess against using the Docker bash:4.4 image. Tests are passing with the version before the update to alpine 3.21: last successful execution

But with the latest version of bash:4.4 tests are failing. As far as I understand, this is caused by missing job control of bash included in the image.

$ docker run -it bash:4.4
bash-4.4# help jobs
bash: help: no help topics match `jobs'.  Try `help help' or `man -k jobs' or `info jobs'.
bash-4.4# jobs
bash: jobs: command not found
bash-4.4# 

Is there a way to get back job control for the bash:4.4 image? Thank you!

jansorg avatar Dec 27 '24 17:12 jansorg

Oh that's not great, sorry for the breakage! The quickest workaround would be to use bash:4.4-alpine3.20 which will get you the older image.

I (or someone 👀) will need to dig into this more to figure out what I missed. Do you happen to test against several versions? Is it only 4.4 that's affected?

tianon avatar Dec 27 '24 17:12 tianon

@tianon Thanks! After quick testing, bash:5.0 and later seems to be fine, but 4.x (and possibly earlier versions) are broken due to missing jobs.

jansorg avatar Dec 27 '24 17:12 jansorg

Fixed via https://github.com/tianon/docker-bash/pull/45

(and I've got some rudimentary tests in place to help catch regressions)

tianon avatar Mar 15 '25 05:03 tianon