From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: "Thiago F.G. Albuquerque" <tfga@zaz.com.br>
Cc: zsh-users@sunsite.dk
Subject: Re: [Newbie] 'set|grep' doesn't work as expected
Date: 26 May 2002 10:39:14 +0400 [thread overview]
Message-ID: <1022395163.2900.4.camel@localhost.localdomain> (raw)
In-Reply-To: <3CF005E5.9020103@zaz.com.br>
В Вск, 26.05.2002, в 01:45, Thiago F.G. Albuquerque написал:
> You're right. Look:
>
> 1 ~> echo $IFS | dump
> 0000 20 9 A 0 A .....
>
> This is <space>, '\t', '\n' and '\0'. The last "A" is the '\n' printed by echo.
>
> In bash, IFS is set to nothing.
>
Impossible (unless you either unset it yourself or have very broken
version). (Value of) IFS is used to split input line into words in some
contexts; I am sure about `read' builtin and possibly some others
(select?). By default it is set to space, TAB and LF for sure; I am not
sure if \0 is Zsh extension (anybody cares to lookup in SUS?)
> I unset IFS in zsh and "set|grep" worked again.
> Using "grep -a" also works.
>
> Is it ok if I remove \0 from IFS?
>
Zsh itself does not depend on its value. But you may have some scripts
that expect it to contain \0.
-andrej
next prev parent reply other threads:[~2002-05-26 6:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-05-24 23:27 Thiago F.G.Albuquerque
2002-05-25 0:09 ` Phil Pennock
2002-05-24 23:59 ` Preben Peppe Guldberg
2002-05-25 0:47 ` Phil Pennock
2002-05-25 3:19 ` Dan Nelson
2002-05-25 21:45 ` Thiago F.G. Albuquerque
2002-05-26 6:39 ` Borsenkow Andrej [this message]
2002-05-27 5:53 ` Borsenkow Andrej
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=1022395163.2900.4.camel@localhost.localdomain \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=tfga@zaz.com.br \
--cc=zsh-users@sunsite.dk \
/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).