Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 714694 - =net-misc/netifrc-0.7.1 with /bin/sh -> mksh: /lib/netifrc/net/iw.sh[731]: no closing quote
Summary: =net-misc/netifrc-0.7.1 with /bin/sh -> mksh: /lib/netifrc/net/iw.sh[731]: no...
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: netifrc (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-25 09:56 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2020-03-25 22:13 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2020-03-25 09:56:14 UTC
Each time netifrc is caching its network module list, the following message appears when mksh is being set as /bin/sh:

   *   Caching network module dependencies
  /lib/netifrc/net/iw.sh[731]: no closing quote

using dash or bash as /bin/sh does not trigger this message


Steps to reproduce:

1) emerge -1n app-shells/mksh
2) ln -sfnv mksh /bin/sh
3) rm /run/openrc/nettreelo
4) /etc/init.d/net.lo restart
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2020-03-25 22:13:05 UTC
netifrc targets POSIX and tests with dash.

here's the line that mksh does not parse correctly:
eval MAC_${APS}="\""$(echo "${x%(*}" | tr '[:lower:]' '[:upper:]' )"\""

specifically, mksh does not parse this expression correctly:
echo "${x%(*}"

Please file a bug to upstream mksh.

Alternate versions of that line will be accepted as well, feel free to test and commit