Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: string overwrites string when echoed
- X-seq: zsh-users 22890
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Emanuel Berg <moasen@xxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: string overwrites string when echoed
- Date: Sun, 10 Sep 2017 14:50:27 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version; bh=1MC9GFRstPqfvLVWKEgjE6NdkSl/sYVA0m/IVSi37hM=; b=aQdZ29bDNwtB/t+zTlJJDRLEGGKkZB7g5xNjdM1em7DbftVkW5bLvC+2wmas7aZ6Cs Kf810+wVMXrTYkZWARTtj4WEyq33xBcAGQ0BC/oSFnaHIhImDgisSspUzzxM/X6d0/TS yf+SkL29ryQ5r4Vc86iz076OnkYFTKF9UnbeDof9S0TFv6MCoJI3+oUFmCqPgBIQ88VE CqcRclg0arcpal+nWvE8xSsUXqVDRlsMvr8VFiyCUe2qxGYw+6Yipci+k2OGfWNGlaLN ji2bWNYlc9WuQG4xEXWkJECu+urYB+YG7g76RjSgY7lwckgtBL0Ko5+7vhSJ3KRkR2Yq yCsw==
- In-reply-to: <86shfumrzm.fsf@zoho.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <86o9qkqbes.fsf@zoho.com> <170909100149.ZM8451@torch.brasslantern.com> <86shfumrzm.fsf@zoho.com>
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