Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 208558 - net-misc/dhcp - dhclient-script requires `echo -e`
Summary: net-misc/dhcp - dhclient-script requires `echo -e`
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-02 10:51 UTC by Davide Pesavento
Modified: 2008-03-29 19:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dhclient-script.patch (dhclient-script.patch,498 bytes, patch)
2008-02-02 10:52 UTC, Davide Pesavento (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Davide Pesavento (RETIRED) gentoo-dev 2008-02-02 10:51:27 UTC
# 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 Davide Pesavento (RETIRED) gentoo-dev 2008-02-02 10:52:27 UTC
Created attachment 142465 [details, diff]
dhclient-script.patch

This patch fixes the problem.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2008-02-02 11:08:41 UTC
Which ebuild and version is this about?
Comment 3 Harald van Dijk (RETIRED) gentoo-dev 2008-02-02 13:47:04 UTC
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 Davide Pesavento (RETIRED) gentoo-dev 2008-02-02 15:47:18 UTC
(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 SpanKY gentoo-dev 2008-03-29 19:47:37 UTC
ran `sed -i 's:echo -e:printf:' */*.patch` in the dhcp dir