Project

General

Profile

« Previous | Next » 

Revision 8833

*{.sh,run}: commands that take named arguments: usage messages: changed to use simpler bash syntax for specifying command-specific env vars, which does not require a subshell ("The environment for any simple command or function may be augmented temporarily by prefixing it with parameter assignments" <http://www.gnu.org/software/bash/manual/bash.html#Environment&gt;)

View differences:

util.sh
24 24

  
25 25
set_var () { eval "$1"'="$2"'; }
26 26

  
27
join () { local IFS="$delim"; echo "$*"; } # usage: (delim=...; join elems...)
27
join () { local IFS="$delim"; echo "$*"; } # usage: delim=... join elems...
28 28

  
29 29
reverse () # usage: array=($(reverse args...))
30 30
{

Also available in: Unified diff