in reply to Re^4: (OT) Fixing Line Endings - patch the shell (kernel)in thread (OT) Fixing Line Endings
Just change that to:
if (isspace(*cp)) *cp = '\0'; [download]