From: Roman Perepelitsa <roman.perepelitsa@gmail.com>
To: Bart Schaefer <schaefer@brasslantern.com>
Cc: TJ Luoma <luomat@gmail.com>, Zsh Users <zsh-users@zsh.org>
Subject: Re: how to either ignore or deal with Icon$'\r' files on macOS
Date: Fri, 21 Jun 2019 10:20:43 +0200 [thread overview]
Message-ID: <CAN=4vMq0URy7yXDi+Bkx_MAf5wALqWLdzf5rxpH=xVdc78FJSw@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7bRNDbxtFieHaXCtR7Lw0n+j_EaUzag4nJk8ECAzLN-BQ@mail.gmail.com>
I'll add to Bart's reply that you can print strings with unprintable
characters like this:
print -r -- ${(q)i}
The printed string round-trips, meaning that you can copy it into your
code for the purpose of comparison via == and the like. For the icon
files you'd get Icon$'\r'.
For strings with many unprintable characters it may be more convenient
to use ${(qqqq)i}. It puts the whole string inside a single $'...', as
in $'Icon\r'.
Roman.
prev parent reply other threads:[~2019-06-21 8:21 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-21 0:04 TJ Luoma
2019-06-21 1:26 ` Ray Andrews
2019-06-21 1:38 ` Bart Schaefer
2019-06-21 8:20 ` Roman Perepelitsa [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAN=4vMq0URy7yXDi+Bkx_MAf5wALqWLdzf5rxpH=xVdc78FJSw@mail.gmail.com' \
--to=roman.perepelitsa@gmail.com \
--cc=luomat@gmail.com \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@zsh.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).