Bug 208558 - net-misc/dhcp - dhclient-script requires `echo -e`
Bug#: 208558 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: davidepesa@gmail.com
Component: Core system
URL: 
Summary: net-misc/dhcp - dhclient-script requires `echo -e`
Keywords:  
Status Whiteboard: 
Opened: 2008-02-02 10:51 0000
Description:   Opened: 2008-02-02 10:51 0000
# cat /etc/resolv.conf
# Generated by resolvconf
search pesa.homelinux.org
nameserver 192.168.86.2
-e # Generated by dhclient for interface eth0#

The last line looks strange.

After patching:
# cat /etc/resolv.conf
# Generated by resolvconf
search pesa.homelinux.org
nameserver 192.168.86.2

This is ok.

------- Comment #1 From Davide Pesavento 2008-02-02 10:52:27 0000 -------
Created an attachment (id=142465) [details]
dhclient-script.patch

This patch fixes the problem.

------- Comment #2 From Jakub Moc (RETIRED) 2008-02-02 11:08:41 0000 -------
Which ebuild and version is this about?

------- Comment #3 From Harald van Dijk 2008-02-02 13:47:04 0000 -------
dhclient and dhclient-script are part of net-misc/dhcp, and I can reproduce the
problem with version 3.1.0. echo -e is not supported by all shells (nor should
it), but is by bash, so systems where /bin/sh is bash won't be affected.

------- Comment #4 From Davide Pesavento 2008-02-02 15:47:18 0000 -------
(In reply to comment #2)
> Which ebuild and version is this about?
> 

net-misc/dhcp-3.1.0
app-shells/dash-0.5.4.6-r1

# ls -l /bin/sh
lrwxrwxrwx 1 root root 4  3 gen 17:03 /bin/sh -> dash

------- Comment #5 From SpanKY 2008-03-29 19:47:37 0000 -------
ran `sed -i 's:echo -e:printf:' */*.patch` in the dhcp dir