Package:  asterisk
Version: 1:1.2.16~dfsg-1

Some Debian based distros (like Ubuntu) have /bin/sh linked to /bin/dash 
instead of to /bin/bash.

Thus, it would be much more appreciated if contrib/scripts/safe_asterisk said 
#!/bin/bash instead of #!/bin/sh at the beginning.

An other option would be to use this diff:

--- asterisk-1.2.16~dfsg.orig/contrib/scripts/safe_asterisk
+++ asterisk-1.2.16~dfsg/contrib/scripts/safe_asterisk
@@ -53,7 +53,7 @@
                if [ "$TTY" != "" ]; then
                        cd /tmp
                        stty sane < /dev/${TTY}
-                       ${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} >& 
/dev/${TTY} < /dev/${TTY}
+                       ${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS} > 
/dev/${TTY} 2>&1 < /dev/${TTY}
                else
                        cd /tmp
                        ${ASTSBINDIR}/asterisk ${CLIARGS} ${ASTARGS}


But I do not know if that also works with bash.

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to