about summary refs log tree commit diff stats
path: root/bash
diff options
context:
space:
mode:
Diffstat (limited to 'bash')
-rw-r--r--bash/functions.bash4
1 files changed, 2 insertions, 2 deletions
diff --git a/bash/functions.bash b/bash/functions.bash index 058e0f9..de6c37a 100644 --- a/bash/functions.bash +++ b/bash/functions.bash
@@ -1,6 +1,6 @@
1memq() { # memq ITEM ARRAY 1memq() { # memq ITEM ARRAY
2 # Test whether an ITEM is a member of ARRAY. 2 ## Test whether an ITEM is a member of ARRAY.
3 # Pass ARRAY as ${ARRAY[@]}. 3 ## Pass ARRAY as ${ARRAY[@]}.
4 local e needle="$1"; shift 4 local e needle="$1"; shift
5 for e; do 5 for e; do
6 [[ "$e" == "$needle" ]] && { 6 [[ "$e" == "$needle" ]] && {