fix assignment to shell variable