Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 5040 - Scripts in init.d are bash not simple sh
Summary: Scripts in init.d are bash not simple sh
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: SysVinit
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 1999-09-10 08:06 UTC by Andrew Macpherson
Modified: 2008-05-01 15:37 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 1999-09-14 21:47:20 UTC

Attachments (Terms of Use)

Description Andrew Macpherson 1999-09-10 08:06:12 UTC
As one of those "let's speed things up" exercises I decided
to unbloat a lot of things by replacing the symlink

/bin/sh -> /bin/bash  with /bin/sh -> /bin/ash

With a view also to getting my profile read in my xterms
(SHLVL=3 typically) ... anyway most things run right, but
something in /etc/rc.d/init.d/functions depends on bash
rather than simple sh functionality.

Suggest you make the dependency explicit in case anyone else
gets caught

cd /usr/local/rc.d/init.d
perl -i -p -e 's:^#!\s*/bin/sh\s*$:#!/bin/bash: ;' *

Comment 1 Bill Nottingham 1999-09-10 15:58:59 UTC
Hmm.... we'll look and see what's being bash specific.

Comment 2 Bill Nottingham 1999-09-13 18:33:59 UTC
OK, after looking at this some, we've fixed a couple of things,
but there are at least two bugs in ash (ash-0.2-18 will be
in the next Raw Hide release.)

Comment 3 Bill Nottingham 1999-09-14 21:47:59 UTC
The latest initscripts (4.41-2) should fix all known problems
of this sort.

Note You need to log in before you can comment on or make changes to this bug.