Bug 206035 - Bash3 only features in init scripts
Bash3 only features in init scripts
Product: Fedora
Classification: Fedora
Component: initscripts (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Bill Nottingham
Brock Organ
Depends On:
  Show dependency treegraph
Reported: 2006-09-11 12:38 EDT by Daniel Qarras
Modified: 2014-03-16 23:02 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-09-11 13:18:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Daniel Qarras 2006-09-11 12:38:35 EDT
There is only one occasion of a bash3-only feature that prevents one to use
other shells as /bin/sh. It is at /etc/init.d/functions in function
resolve_dm_name() and it is the operator =~. Please consider using another
method to allow replacing of bash3 as /bin/sh.

Another thing causing some headaches is the style to source function libraries
in this manner:

cd /some/path
. functions

This does not work with all shells as /bin/sh, eg zsh, as they always require a

cd /some/path
. ./functions

Please consider also fixing this one.

Comment 1 Bill Nottingham 2006-09-11 13:18:07 EDT
This is why there is:

Requires: bash >= 3.0

in the spec file.

'.' usage fixed in CVS.

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