Date: Wed, 27 Feb 2019 11:15:39 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 236079] [PATCH] local-unbound-setup cannot read resolv.conf with tabs as a separator Message-ID: <bug-236079-227@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D236079 Bug ID: 236079 Summary: [PATCH] local-unbound-setup cannot read resolv.conf with tabs as a separator Product: Base System Version: 11.2-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: 000.fbsd@quip.cz Created attachment 202406 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D202406&action= =3Dedit replace tabs by space In resolv.conf keyword "nameserver" and its value (IP address) can be separ= ated by spaces or tabs but local-unbound-setup accepts only spaces resulting in: No forwarders found in resolv.conf, using existing forward.conf. I am not so good in shellscripting so I fixed it by this line local line=3D$(echo $line | sed -E 's/ / /g') I don't know how to write it as parameter expansion instead of calling sed = in a subshell. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-236079-227>