Bug#407775: mini-httpd: Bashism in init-script (echo -e)

2007-01-21 Thread Andreas Metzler
Package: mini-httpd
Version: 1.19-3
Severity: normal
Tags: patch

/etc/init.d/mini-httpd contains
echo -e You have to edit /etc/mini-httpd.conf and\n/etc/default /mini-httpd 
before running mini-httpd!

However echo -e is a bashism and will not work with e.g. dash
quote
argenau:~# /etc/init.d/mini-httpd start
-e You have to edit /etc/mini-httpd.conf and
/etc/default/mini-httpd before running mini-httpd!
unquote

Either
printf You have to edit /etc/mini-httpd.conf and\n/etc/default /mini-httpd 
before running mini-httpd!
or
echo You have to edit /etc/mini-httpd.conf and
/etc/default /mini-httpd before running mini-httpd!
(with the line-break will do the trick.
cu andreas
-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/dash
Kernel: Linux 2.6.18-3-k7
Locale: LANG=de_AT.UTF-8, LC_CTYPE=de_AT.UTF-8 (charmap=UTF-8)

Versions of packages mini-httpd depends on:
ii  libc62.3.6.ds1-8 GNU C Library: Shared libraries
ii  libssl0.9.8  0.9.8c-4SSL shared libraries

mini-httpd recommends no packages.

-- no debconf information
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.(c) Jasper Ffforde


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Bug#407775: mini-httpd: Bashism in init-script (echo -e)

2007-01-21 Thread Marvin Stark
On Sunday 21 January 2007 09:13, Andreas Metzler wrote:
 Package: mini-httpd
 Version: 1.19-3
 Severity: normal
 Tags: patch

 /etc/init.d/mini-httpd contains
 echo -e You have to edit /etc/mini-httpd.conf and\n/etc/default
 /mini-httpd before running mini-httpd!

 However echo -e is a bashism and will not work with e.g. dash
 quote
 argenau:~# /etc/init.d/mini-httpd start
 -e You have to edit /etc/mini-httpd.conf and
 /etc/default/mini-httpd before running mini-httpd!
 unquote

 Either
 printf You have to edit /etc/mini-httpd.conf and\n/etc/default /mini-httpd
 before running mini-httpd! or
 echo You have to edit /etc/mini-httpd.conf and
 /etc/default /mini-httpd before running mini-httpd!
 (with the line-break will do the trick.
 cu andreas

Hi,

thanks for the information. This bug will be fixed in next upload.

[...]

Regards,
-- 
 .`. Marvin Stark [EMAIL PROTECTED]
: :  :Homepage: www.der-marv.de
`. ``
  `-  Debian - when you have better things to do than fix a system


pgpBaHyfbgMJl.pgp
Description: PGP signature


Bug#407775: mini-httpd: Bashism in init-script (echo -e)

2007-01-21 Thread Andreas Metzler
On 2007-01-21 Andreas Metzler [EMAIL PROTECTED] wrote:
[...]
 Either
 printf You have to edit /etc/mini-httpd.conf and\n/etc/default /mini-httpd 
 before running mini-httpd!
 or
 echo You have to edit /etc/mini-httpd.conf and
 /etc/default /mini-httpd before running mini-httpd!
 (with the line-break will do the trick.
[...]

Actually single quotes should be used (due to the !) and the printf
statement is missing a \n. - Sorry.

printf 'You have to edit /etc/mini-httpd.conf and\n/etc/default/mini-httpd 
before running mini-httpd!\n'
or
echo 'You have to edit /etc/mini-httpd.conf and
/etc/default/mini-httpd before running mini-httpd!'

cu andreas
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.(c) Jasper Ffforde


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]