X-Git-Url: https://feistymeow.org/gitweb/?a=blobdiff_plain;f=scripts%2Fcore%2Farray_sifter.sh;h=aca301f64c1466e8b7b0810d898b62c6e06dc246;hb=50cbf032de87aead124a5f6566bd1d87610fb40f;hp=fec3f2097f91c62d19e6a7c2db3fda500c6cd7ff;hpb=2952ccf47b80174880141a7ecfa122089f349b8d;p=feisty_meow.git diff --git a/scripts/core/array_sifter.sh b/scripts/core/array_sifter.sh index fec3f209..aca301f6 100644 --- a/scripts/core/array_sifter.sh +++ b/scripts/core/array_sifter.sh @@ -2,6 +2,11 @@ # # 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.