Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 330679 - app-text/dictd init script tries to make illegal use of pushd
Summary: app-text/dictd init script tries to make illegal use of pushd
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Spell checking utilities and dictionaries -- related bugs (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-08-01 04:03 UTC by ferret
Modified: 2010-08-01 10:48 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 ferret 2010-08-01 04:03:20 UTC
/etc/init.d/dictd line 22
	pushd ${DLIBDIR} >/dev/null

pushd is not a command in posix sh.  It is a bash builtin.  It is therefore not legal in an init script, and causes it to fail on systems where sh is not bash.

As an alternative I suggest storing the value of "$PWD" in a variable, using cd, then later on using the variable in a cd statement.
Comment 1 Peter Volkov (RETIRED) gentoo-dev 2010-08-01 10:48:11 UTC
Thank you for report. Fixed in the tree.