X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Farray_sifter.sh;h=a66941a4aa7bdb7c87bf0a77db788bb1cae48360;hb=54d718f28e009067b353297e944053e9f7267586;hp=fec3f2097f91c62d19e6a7c2db3fda500c6cd7ff;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/scripts/core/array_sifter.sh b/scripts/core/array_sifter.sh index fec3f209..a66941a4 100644 --- a/scripts/core/array_sifter.sh +++ b/scripts/core/array_sifter.sh @@ -1,7 +1,12 @@ -#!/bin/bash +#!/usr/bin/env bash # # Provides functions for checking and sorting the contents of arrays. + +#hmmm: these could all be beefed up by properly handling spaces in array +# entries. use "${blah[@]}" rather than '*' for getting all elems. + + # given the name of an array as the first parameter, this signals # success (return value zero) if the second parameter is found in the # array. failure (non-zero return) occurs if the item is missing.