Bug 45578 - ash doesn't respect 'source', only '.'
Bug#: 45578 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: x11@gentoo.org Reported By: Vazagi@io.dk
Component: Applications
URL: 
Summary: ash doesn't respect 'source', only '.'
Keywords:  Inclusion
Status Whiteboard: 
Opened: 2004-03-23 23:47 0000
Description:   Opened: 2004-03-23 23:47 0000
After emerging xfree-4.3.99.902-r2, xfree would no longer use the wm I had
choosen in rc.conf. The reason was that the script /etc/X11/chooser.sh expects
/bin/sh to be bash, as it uses the "source" function, however, I had /bin/sh
symlinked to /bin/ash, with the result that those calls failed.
Changing the script to use /bin/bash fixed the problem.

Reproducible: Always
Steps to Reproduce:
1. Emerge xfree-4.3.99.902-r2
2. Replace default symlink from /bin/sh with one to another shell
3. run startx

Actual Results:  
Xfree will fail to use the user-specified wm, but instead use the default one. 

Expected Results:

------- Comment #1 From Adam Jackson 2005-01-16 14:41:04 0000 -------
that sounds more like ash not being POSIX-compliant.

if you edit the chooser.sh to say '.' instead of 'source', does it work as expected?

------- Comment #2 From Donnie Berkholz 2005-09-07 09:23:24 0000 -------
Waiting for response.

------- Comment #3 From Mikkel Schubert 2005-09-07 11:59:49 0000 -------
Sorry for the late reply. Changing "source" to "." does fix the issue with the 
stable version of ash in portage. I have not tested it with anything else 
though. 
 
Cheers, 
 Mikkel S. 

------- Comment #4 From Donnie Berkholz 2005-09-07 15:18:24 0000 -------
OK

------- Comment #5 From Donnie Berkholz 2005-09-07 15:19:53 0000 -------
Aaron, you look more like the maintainer than anyone else. Please add metadata.

------- Comment #6 From Harald van Dijk 2006-07-27 22:27:43 0000 -------
(In reply to comment #1)
> that sounds more like ash not being POSIX-compliant.

'source' is not defined by POSIX, only '.' is. This is not a bug in ash.

Sending back to x11@.

------- Comment #7 From Donnie Berkholz 2006-09-05 16:22:14 0000 -------
Fixed, remerge your xinit in an hour or so.