Proposal ipv6_addrs_common

Hiroki Sato hrs at FreeBSD.org
Mon Feb 6 22:30:08 UTC 2012


Doug Barton <dougb at FreeBSD.org> wrote
  in <4F304F54.4020802 at FreeBSD.org>:

do> On 02/06/2012 13:47, Hiroki Sato wrote:
do> >  It actually depends on the newline
do>
do> That's way too fragile, as users are likely to put them all in one line
do> since shell syntax doesn't differentiate (assuming non-wacky values of IFS).

 I don't think so.  In this syntax a newline character is a separator
 distinguished from normal white spaces by read statement.

do> > echo "$foo" | while read L; do echo $L; done
do>
do> Yeah, don't do that. Aside from the useless fork that you'll cause, you
do> can just as easily write:
do>
do> for L in $foo; do
do>
do> (Note that $foo is *not* quoted there ...)

 No, my intention is grouping multiple words by a newline.  By using
 "for", lines cannot be separated from each other in the following
 case:

foo="
	foo foo2
	bar bar2
	baz
"

-- Hiroki
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20120206/1f142b97/attachment.pgp


More information about the freebsd-rc mailing list