From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 27e7ea15 for ; Fri, 21 Jun 2019 08:21:38 +0000 (UTC) Received: (qmail 880 invoked by alias); 21 Jun 2019 08:21:28 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 23978 Received: (qmail 6755 invoked by uid 1010); 21 Jun 2019 08:21:27 -0000 X-Qmail-Scanner-Diagnostics: from mail-io1-f52.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.101.2/25482. spamassassin: 3.4.2. Clear:RC:0(209.85.166.52):SA:0(-2.0/5.0):. Processed in 0.749253 secs); 21 Jun 2019 08:21:27 -0000 X-Envelope-From: roman.perepelitsa@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.166.52 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=pcsnYx5rxJYw8JnCYEOZnu/athmH6cY94sfinjdthxg=; b=Y3STSQRgbuudcZxCrjTc33lA9nVJxGThOIToQD68cJrhiHoiE09iZAKj1fgoDqk6qK RFlU3YuCJcPhVjSiRvAX7r4qFFauzDO86+ubZt/kgGCduvnAgB753Z5K361l+Q2prLiV NiudoIAbJRfv2DRQQvftPSbvS4bYn5fDsBvfh1XYNUaaeAfnrJ/gkupmJH6t0QXb8IrA RO3CnIapn5ulm3Evja0xNn14qT0oLqPOgUnCPQsZnxMFHNDZICR2wvmjCoBN2E2Vo20A 9hFaJyBRtQtXN+93C8OEqK6Pe9TZvGU+PJWUgMn2HbmVNOYe8y9WoQYZqWDHLKpj71Io Rbvw== X-Gm-Message-State: APjAAAVXhiZR5R6JsRteOsgDGU7B5YyVKPTZaC4u77yZLhI6PMOvc7hq ayE5BIQx31a0THmf1JUKDW6JnZDNXNJDo8RgITw= X-Google-Smtp-Source: APXvYqwVB1+vovBIcaAAmgqmjDWOZ58uc8/sydPrtxhUg+j5tuBn2hbwhO3SkR83+clnWA8nt5zEho0fmQ492VTWr6Q= X-Received: by 2002:a6b:1488:: with SMTP id 130mr4039077iou.304.1561105254143; Fri, 21 Jun 2019 01:20:54 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Roman Perepelitsa Date: Fri, 21 Jun 2019 10:20:43 +0200 Message-ID: Subject: Re: how to either ignore or deal with Icon$'\r' files on macOS To: Bart Schaefer Cc: TJ Luoma , Zsh Users Content-Type: text/plain; charset="UTF-8" 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.