All of lore.kernel.org
 help / color / mirror / Atom feed
From: Warren Togami <wtogami-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: David Dillow <dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org>
Cc: initramfs <initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: Broken substitution
Date: Wed, 29 Jul 2009 17:39:28 -0400	[thread overview]
Message-ID: <4A70C190.6050902@redhat.com> (raw)
In-Reply-To: <1248903464.19166.43.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>

On 07/29/2009 05:37 PM, David Dillow wrote:
> On Wed, 2009-07-29 at 17:13 -0400, Warren Togami wrote:
>> Upstream dhclient writes out \032 instead of a space if multiple search
>> domains are specified in dhcpd.conf.  It has been this way for years.
>> Debian and Fedora have worked around this by doing the below bash
>> substitution.  Upstream has rejected fixing this in dhclient for
>> different reasons.
>>
>> The substitution below works on bash but not dash.
>>
>> Dillow suggested this method that will work with bash and dash.
>> Unfortunately I now noticed that this seems to remove the space between
>> search domain entries.
>
> What are you talking about?
>
> # dash
> $ t="1 2"
> $ printf "$t"
> 1 2$
>

It handles an actual space just fine.  But not the broken \032 space 
from dhclient.

Warren
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2009-07-29 21:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-29 21:13 Broken substitution Warren Togami
     [not found] ` <4A70BB67.7030803-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-29 21:37   ` David Dillow
     [not found]     ` <1248903464.19166.43.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org>
2009-07-29 21:39       ` Warren Togami [this message]
     [not found]         ` <4A70C190.6050902-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2009-07-29 23:00           ` David Dillow
     [not found]             ` <1248908439.8777.9.camel-1q1vX8mYZiGLUyTwlgNVppKKF0rrzTr+@public.gmane.org>
2009-07-30  1:57               ` David Dillow

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=4A70C190.6050902@redhat.com \
    --to=wtogami-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
    --cc=dave-i1Mk8JYDVaaSihdK6806/g@public.gmane.org \
    --cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    /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.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.