Skip to Content.
Sympa Menu

sm-grimoire-bugs - [SM-Grimoire-Bugs] [Bug 11759] profile script lc.sh contains non-portable sh

sm-grimoire-bugs AT lists.ibiblio.org

Subject: SourceMage Grimoire Bug List

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-grimoire-bugs AT lists.ibiblio.org
  • Subject: [SM-Grimoire-Bugs] [Bug 11759] profile script lc.sh contains non-portable sh
  • Date: 26 May 2006 17:53:46 -0000

http://bugs.sourcemage.org/show_bug.cgi?id=11759





------- Additional Comments From iuso AT sourcemage.org 2006-05-26 12:53 -------
Even though SMGL relies on bash, apparently some scripting should be
portable.
Are there other areas than profile.d where this should apply? How about
init.d?

I'm not a big fan of portable scripts myself. That's because bash is in many
cases much faster than most other shells. If it would be possible to enforce
an all-bash environment I would be for it, but I assume that isn't compatible
with our philosophy.

While you're at it, have you checked if [[ ]] is used by other shells? I have
the impression that it is a bashism. I myself use it every time, because it's
about 20 % faster than [ ] (iirc).

I think we should have a wiki page about where scripts should be portable.
Would prevent me from screwing those things. :)

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.




Archive powered by MHonArc 2.6.24.

Top of Page