Summary: | =sys-apps/openrc-0.9.9.3 /etc/init.d/procfs: '[: 308: unexpected operator' (/bin/sh -> dash) | ||
---|---|---|---|
Product: | Gentoo Hosted Projects | Reporter: | Sergei Trofimovich (RETIRED) <slyfox> |
Component: | OpenRC | Assignee: | OpenRC Team <openrc> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | PATCH |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 405503 | ||
Attachments: | 0001-init.d-procfs-work-nicer-in-dash.patch |
This has been applied in commit 4943ddc Thanks for the patch. |
Created attachment 309157 [details, diff] 0001-init.d-procfs-work-nicer-in-dash.patch I've noticed in at boot: # /etc/init.d/procfs restart procfs | * WARNING: you are stopping a boot service procfs |[: 308: unexpected operator Which calls $ /bin/dash -c '[ "$RC_SYS" == "OPENVZ" ] && echo "ovz" || echo "nope"' [: 1: unexpected operator nope Fixed by using '='. Thanks!