More const ref in shellfc