Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: string overwrites string when echoed



On Sep 10,  6:35pm, Emanuel Berg wrote:
}
} > The value of $reply has an embedded
} > carriage-return.
} 
} echo "${(V)reply} $u" works, only how do I drop
} the ^M then?

There have been several reasonable replies to this, but it might be
useful to point out that the ^M is there in the first place because
curl is emitting it.  A quick glance through the curl documentation
doesn't reveal a way to prevent that.  You could strip it off when
postprocessing the curl output in your url-exists function, which
might prevent confusion if you ever use that separately from the
urls-exist wrapper.



Messages sorted by: Reverse Date, Date, Thread, Author