Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 749660 - app-shells/dash-0.5.11.2 stabilization (was: app-shells/dash-0.5.11.1: test operators -nt/-ot never give true)
Summary: app-shells/dash-0.5.11.2 stabilization (was: app-shells/dash-0.5.11.1: test o...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: CC-ARCHES, STABLEREQ
Depends on:
Blocks:
 
Reported: 2020-10-17 09:19 UTC by Nikita Zlobin
Modified: 2020-11-02 09:10 UTC (History)
1 user (show)

See Also:
Package list:
app-shells/dash-0.5.11.2
Runtime testing required: ---
nattka: sanity-check+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikita Zlobin 2020-10-17 09:19:02 UTC
Basic sh implementation is used, e.g. by make. I clearly noticed breakage while trying to build osmo-pim.
There is command to compile po translations (showing final echo render):

if test hu.po -nt hu.mo ; then msgfmt -c --statistics hu.po -o hu.mo; echo hu.mo updated.; fi

For problem test I tried this:
test hu.po -nt hu.mo && echo yes || echo no
test hu.po -ot hu.mo && echo yes || echo no

In bash answers were correct, but in dash: always "no".
Previous dash version did not have such problem - I last rebuild it (from my ebuild) just prior to app-shells/dash upgrade.

Reproducible: Always

Steps to Reproduce:
1. Find this snippet for any two files, file1 and file2:
f1=file1
f2=file2
test ${f1} -nt ${f2} && echo yes || echo no
test ${f1} -ot ${f2} && echo yes || echo no
Actual Results:  
Alwyas says "no"

Expected Results:  
Answers must be different

Imho, they should just rely to make's own feature to check versions.
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-10-17 09:34:42 UTC
Does this also happen with app-shells/dash-0.5.11.2 version?
Comment 2 Nikita Zlobin 2020-10-17 10:18:17 UTC
0.5.11.2 has the fix.
Comment 3 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-10-17 10:25:15 UTC
Let's turn this into a stable request then.
Comment 4 Thomas Deutschmann (RETIRED) gentoo-dev 2020-10-18 18:06:24 UTC
x86 stable
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-18 23:54:28 UTC
arm done
Comment 6 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-10-19 00:13:54 UTC
arm64 done
Comment 7 Sergei Trofimovich (RETIRED) gentoo-dev 2020-10-20 07:08:03 UTC
hppa/ppc/ppc64/sparc stable
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-11-02 09:10:23 UTC
amd64 done

all arches done