Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 45578 - ash doesn't respect 'source', only '.'
Summary: ash doesn't respect 'source', only '.'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks:
 
Reported: 2004-03-23 23:47 UTC by Mikkel Schubert
Modified: 2006-09-05 16:22 UTC (History)
2 users (show)

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 Mikkel Schubert 2004-03-23 23:47:05 UTC
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 Adam Jackson 2005-01-16 14:41:04 UTC
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 Donnie Berkholz (RETIRED) gentoo-dev 2005-09-07 09:23:24 UTC
Waiting for response.
Comment 3 Mikkel Schubert 2005-09-07 11:59:49 UTC
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 Donnie Berkholz (RETIRED) gentoo-dev 2005-09-07 15:18:24 UTC
OK
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2005-09-07 15:19:53 UTC
Aaron, you look more like the maintainer than anyone else. Please add metadata.
Comment 6 Harald van Dijk (RETIRED) gentoo-dev 2006-07-27 22:27:43 UTC
(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 Donnie Berkholz (RETIRED) gentoo-dev 2006-09-05 16:22:14 UTC
Fixed, remerge your xinit in an hour or so.