Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 15245] New: improve libhash for newer bash

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 15245] New: improve libhash for newer bash
  • Date: 31 May 2009 09:28:42 -0000

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

Summary: improve libhash for newer bash
Product: Sorcery
Version: Untargetted future release
Platform: x86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: subroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: svn AT lynxlynx.info


libhash is based on a name constructing approach via eval.

Bash 3.x introduced printf -v, which can be used instead and is a bit safer.
You can see a reimplementation of our libhash with that here:
http://envbot.kuonet.org/trac/browser/anmaster-trunk/lib/hash.sh

Bash 4 has internal support for associative arrays, so much of libhash could
be
greatly simplified. http://tldp.org/LDP/abs/html/bashver4.html

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



  • [SM-Sorcery-Bugs] [Bug 15245] New: improve libhash for newer bash, bugzilla-daemon, 05/31/2009

Archive powered by MHonArc 2.6.24.

Top of Page