Yes, which is exactly what your original implementation did, just implemented with grep/eval instead of sourcing the script to maintain compatibility with the old behavior.