in reply to shift doesnt shift
Need to debug a bit. What's "$@" that you're shifting? What's the value being shifted off?
UPDATE: sorry, I meant @_, not $@ ....