Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 605694 - net-dns/pdns-recursor: init script uses bash-specific redirection syntax
Summary: net-dns/pdns-recursor: init script uses bash-specific redirection syntax
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Sven Wegener
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-14 14:46 UTC by Mike Gilbert
Modified: 2017-01-14 19:25 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Gilbert gentoo-dev 2017-01-14 14:46:19 UTC
foo &> bar is not specified in POSIX, and it may not work with all shells (/bin/sh).

To reproduce, install dev-util/checkbashisms, and run checkbashisms -f /etc/init.d/pdns-recursor.


 * QA Notice: shell script appears to use non-POSIX feature(s):
 *    possible bashism in /etc/init.d/pdns-recursor line 14 (should be >word 2>&1):
 *      /usr/sbin/pdns_recursor --daemon=yes &>/dev/null
 *    possible bashism in /etc/init.d/pdns-recursor line 20 (should be >word 2>&1):
 *      /usr/bin/rec_control quit &>/dev/null
 *    possible bashism in /etc/init.d/pdns-recursor line 26 (should be >word 2>&1):
 *      /usr/bin/rec_control ping &>/dev/null
Comment 1 Sven Wegener gentoo-dev 2017-01-14 19:25:32 UTC
Thanks, fixed.