Proposal ipv6_addrs_common
Doug Barton
dougb at FreeBSD.org
Mon Feb 6 22:08:42 UTC 2012
On 02/06/2012 13:47, Hiroki Sato wrote:
> It actually depends on the newline
That's way too fragile, as users are likely to put them all in one line
since shell syntax doesn't differentiate (assuming non-wacky values of IFS).
> because the following code is used:
>
> ---
> foo="
> foo
> bar
> baz
> "
>
> echo "$foo" | while read L; do echo $L; done
Yeah, don't do that. Aside from the useless fork that you'll cause, you
can just as easily write:
for L in $foo; do
(Note that $foo is *not* quoted there ...)
Doug
--
It's always a long day; 86400 doesn't fit into a short.
Breadth of IT experience, and depth of knowledge in the DNS.
Yours for the right price. :) http://SupersetSolutions.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: OpenPGP digital signature
Url : http://lists.freebsd.org/pipermail/freebsd-rc/attachments/20120206/463faeec/signature.pgp
More information about the freebsd-rc
mailing list