|
From: | Chris F.A. Johnson |
Subject: | Re: [Help-bash] starting a central bash script repository |
Date: | Sat, 6 Apr 2013 18:57:37 -0400 (EDT) |
User-agent: | Alpine 2.00 (LMD 1167 2008-08-23) |
On Sat, 6 Apr 2013, Chris F.A. Johnson wrote:
On Sat, 6 Apr 2013, Peng Yu wrote:Bash code is not reusable in any sane way. You can't pass array names to functions, for exampleOne certainly can pass array names to functions. I have a library of functions that take array names as arguments: <http://cfajohnson.com/shell/?2013-01-08_bash_array_manipulation>.
I should have given this URL: <http://cfajohnson.com/shell/arrays/>
(this is the #1 problem with writing "libraries" of bash code).I don't have any problem writing libraries of bash code; I have dozens of them.
-- Chris F.A. Johnson, <http://cfajohnson.com/> Author: Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress) Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
[Prev in Thread] | Current Thread | [Next in Thread] |