On Thu, Jun 7, 2012 at 6:07 AM, Linda Walsh <b...@tlinx.org> wrote:
>(no I haven't made it space/bracket...whatever proof...just a bit
> more work)

It's not just "a bit more work", there are many workarounds but it's not
really possible to make a really robust generic solution for assignment,
and in the end it just not as simple and pretty as nameref.

Fwiw here is a robust and simple solution for in_:

_in () {
  local e t
  t="${2:?}[@]";
  for e in "${!t}"; do [[ $1 = "$e" ]] && return 0;done
  return 1;
}

Reply via email to