sh: Detect an error for ${#var<GARBAGE>}.