Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: how to either ignore or deal with Icon$'\r' files on macOS
- X-seq: zsh-users 23978
- From: Roman Perepelitsa <roman.perepelitsa@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: how to either ignore or deal with Icon$'\r' files on macOS
- Date: Fri, 21 Jun 2019 10:20:43 +0200
- Cc: TJ Luoma <luomat@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=pcsnYx5rxJYw8JnCYEOZnu/athmH6cY94sfinjdthxg=; b=MCAyoPuOYfilqsr1Bb8rRiem6d9TNX1c8ESRErJ4bybjg5+kjoMFOhDFeOFSVVG/PR VN5+VpPeyY6rA1GbBGucKYwl26b5nQeuB8Crz6OWYqTNk6sbA0lvHc7RasvpiQooBhuu lmtR9kgHkHUtKX546MvYB4uT//oo3m2gXQ7jZ69IJdrz4eYk1T2G9tjX4z2bFq1x7e+M CoVp0KEYWtM4IwwjWgUHAmvwIXbSj6Fe/woTRk0J2QYYx8vdTNFnUHJnB460B7esmmCw 1RZqocRxPQsygatzykPJEFFWD7vepcJ2GkuMeb9mkDP1XNXPk0ikK3GuOhkMxMDnTBB7 2+LA==
- In-reply-to: <CAH+w=7bRNDbxtFieHaXCtR7Lw0n+j_EaUzag4nJk8ECAzLN-BQ@mail.gmail.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>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CADjGqHt0p7Mohed9Ge80HidT93Q5Mc-DuKdKuzd-vrVGyMmQSQ@mail.gmail.com> <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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author