Bug #24294 mysql.server: source: not found
Submitted: 14 Nov 2006 12:25 Modified: 11 Dec 2006 4:02
Reporter: Kai Seidler Email Updates:
Status: Closed Impact on me:
Category:MySQL Server Severity:S3 (Non-critical)
Version:5.0.27 OS:Linux (Ubuntu Linux 6.10 Edgy Eft)
Assigned to: Hartmut Holzgraefe CPU Architecture:Any

[14 Nov 2006 12:25] Kai Seidler
The mysql.server start script uses the source command in line 85 to include some settings from /lib/lsb/init-functions. 

On Ubuntu 6.10 /bin/sh is a symbolic link to /bin/dash, a shell which doesn't support the source command. (Since source isn't a Bourne shell command I think it's okay for dash not to know about this command.)

How to repeat:
Call mysql.server on a Ubuntu 6.10 system.

Suggested fix:
Replace "source" by "." which is Bourne shell's equivalent of C shells source command.
[16 Nov 2006 22:37] Hartmut Holzgraefe
verified, see also


 * source

    This command is not portable, as POSIX does not require it; use . instead.
[16 Nov 2006 22:39] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:


ChangeSet@1.2314, 2006-11-16 23:39:02+01:00, hartmut@walhalla.site +1 -0
  This command is not portable, as POSIX does not require it; use . instead.
  (Bug #24294)
[11 Dec 2006 4:02] Paul DuBois
Noted in 5.0.32, 5.1.15 changelogs.

The mysql.server script used the source command, which is less
portable than the . command; it now uses . instead.