Description of problem: When zsh is sourcing init scripts under /etc/profile.d zsh is set to emulate ksh although all the init scripts are for /bin/sh or /bin/bash (ie, for Bourne shell, not for ksh). There is at least one init script that does not work with ksh: https://bugzilla.redhat.com/show_bug.cgi?id=314431 Even without that I think it might make more sense to emulate "sh" instead of "ksh" when executing scripts starting with /bin/sh and also taking into account that some scripts might contain bashisms in which case I would presume "sh" emulation having better changes to survive than "ksh" emulation. Testing with "sh" emulation currently works all ok. Version-Release number of selected component (if applicable): 4.3.4 How reproducible: Always. Steps to Reproduce: 1. See the description above. Actual results: zsh emulating ksh. Expected results: zsh emulating sh. Additional info:
Hmm, actually my comment regarding "testing with sh emulation" was a gross understatement: I've used sh emulation on RHEL4/5 and at least on Fedora 6/7/8/9, perhaps even with earlier versions, without any problems. Thanks.
Sorry about the noise, one minor nit: while at it, perhaps "source /etc/..." could changed to ". /etc/..." as "source" is the csh way, ". /path" is the sh/bash/zsh way.
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle. Changing version to '10'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
This issue is still present in F11ß.
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
This issue is still present in F12ß.
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle. Changing version to '12'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
Well the "sh" vs "ksh" thing is a bit misleading, as "sh" there means "sh family" of which ksh is a member. I think ksh is closer to the desired behaviour, although I'm not an expert. If zsh had an "emulate bash" mode, that would probably be worth it, but as it is I don't see the advantage of saying "emulate sh".