Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: (0) not working ?
- X-seq: zsh-users 24466
- From: Marc Chantreux <eiro@xxxxxxxxx>
- To: Perry Smith <pedz@xxxxxxxxxxxxxxxx>
- Subject: Re: (0) not working ?
- Date: Wed, 27 Nov 2019 15:18:20 +0100
- Cc: Marc Chantreux <eiro@xxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-filter: OpenDKIM Filter v2.10.3 aurora-borealis.phear.org D84E211E5C
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/simple; d=phear.org; s=20180217; t=1574864301; bh=aeNzCbZ1s3wXmFykPBR5JbRwobS5sLoGf1dwrSaR36I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tiLMcAVX7Tlxh6BtDIfpbnPdrFk69LYl40iPb2PUjuam9IAH9SOJxRZkxTShgEsLs 2zMCliIiLjOCt5BXNIjF0TtNUatH48VbrjWkQfhYqg2a01RLyZG0p1hQfEkI7DK0r6 VCf3L76Ch0kaM0LlqGl4QOZ+9I1c1BDEcUv3nsNcK5PedTUNmsFxR7OfNhEFMlFy+L 1y2P0lH7kpJZ7BHxgiHF2n/fvAgjBy+uGwbHhx3At4EpTn3UVdrpjFE0UooGcE8sqH w7bzvkOLwqRfe2HTvXBSb95vPGKl4d9XmHOzB1ci7qD64ufURGCjhHJcrTwzx1eDMk TYbeS93WbsVew==
- In-reply-to: <7C08CB02-19E7-49BA-A511-3239B2ABD614@easesoftware.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: <20191127130038.GA19354@prometheus.u-strasbg.fr> <7C08CB02-19E7-49BA-A511-3239B2ABD614@easesoftware.com>
hello Perry,
> I’m very new here so take what I say with caution but why
> did you put the backslash before the 0?
if you use xxd:
echo -n 0 $'\0'|xxd
you can see that 0 is the symbol 0x30 (48th of the ascii table)
when \0 is 00.
\0 is non-sense in a legit text stream so it can be used as
a separator instead of all those separators that can exist in
text ( "\n", ",", ":" " ", "\t").
see xargs -0, find -print0, ...
regards
marc
Messages sorted by:
Reverse Date,
Date,
Thread,
Author