[PATCH] make it possible to keep Config/Kbuild snippets in *.c files
walter harms
wharms at bfs.de
Sun May 16 14:51:04 UTC 2010
Cristian Ionescu-Idbohrn schrieb:
> On Sat, 15 May 2010, walter harms wrote:
>
>> Cristian Ionescu-Idbohrn schrieb:
>>
>>> If resetting IFS is important, please do it like this instead:
>>>
>>> IFS='
>>> '
>>>
>>> You'll get what you want:
>>>
>>> 00000000 0a |.|
>>>
>>> without breaking anything.
>> That will make it unreadable due to invisible chars.
>
> It's readable alright, IMO. Just look for the closing quote character.
>
>> what is about:
>> IFS=$( printf "\n" )
>>
>> printf is posix and should be supported by dash.
>
> Yes, printf is posix, supported by bash, dash and whatnot.
>
> But, even if it did work (did you test? what shell?), forking a subshell
> just to get an LF character stashed into a variable, is way too expensive.
>
I does not matter, it simply addresse the problem:
1. avoid broken shells with "echo -e" missing/broken
2. avoid non-printable characters while setting a variable
3. use existing posix cmds
when you have a time problem that can be fixed using
IFS='
'
its fine, but if you can not spend the time for a printf(1) you may
have a different type of problem.
re,
wh
More information about the busybox
mailing list