Re: Dash problem with IFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 5/11/09, Sven Mascheck:
> On Thu, May 07, 2009 at 07:01:56PM +0300, Oleg Verych wrote:
>
>  > # just newline
>  > IFS=`printf '\n+'`; IFS=${IFS%+}
>
>  > last example is POSIXly correct ugliness. Bashizm looks better (:
>  >
>  > IFS=$'\n'
>
>
> PS: I see the problem distinguishing a tab from a space,
>  but everything but a literal newline is bloat

Old plain WYSIWYG :)

>  IFS='
>
> '

but this is something, that doesn't look like one new line... (e-mail
or web text encodings/filters?)
-- 
sed 'sed && sh + olecom = love'  <<  ''
-o--=O`C
 #oo'L O
<___=E M
--
To unsubscribe from this list: send the line "unsubscribe dash" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [LARTC]     [Bugtraq]     [Yosemite Forum]     [Photo]

  Powered by Linux