From mboxrd@z Thu Jan 1 00:00:00 1970 From: Warren Togami Subject: Re: Broken substitution Date: Wed, 29 Jul 2009 17:39:28 -0400 Message-ID: <4A70C190.6050902@redhat.com> References: <4A70BB67.7030803@redhat.com> <1248903464.19166.43.camel@lap75545.ornl.gov> Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1248903464.19166.43.camel-FqX9LgGZnHWDB2HL1qBt2PIbXMQ5te18@public.gmane.org> Sender: initramfs-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii"; format="flowed" To: David Dillow Cc: initramfs 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