Your message dated Tue, 26 Jan 2010 23:07:21 +0100
with message-id <[email protected]>
and subject line Re: Bug#567042: binutils: what's wrong with bash:cannot do if
and == ?
has caused the Debian Bug report #567042,
regarding binutils: what's wrong with bash:cannot do if and == ?
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
567042: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=567042
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: binutils
Version: 2.20-4
Severity: normal
Hello,
There is a big bug with bash and sh.... really huge.
if [ "$myvariable33" == "${1}" ] ; then
echo "Make deb and src files..."
tar xvf "${1}"
fi
The new bash / sh does not like the ==
Come on, this cannot be changed suddenly.
Please try to remain it as before in the stable debian distro. Debian is not
Ubuntu please, it has to have strong policy and be STABLE and to which one can
rely. Otherwise tomorrow I will have to install fedora, or slackware, for
reliability. Bash cannot be changed in the deepest command suddelny, because
lot of developers spend years to develop under bash.
Yours sincerely,
Y.
-- System Information:
Debian Release: squeeze/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.30-2-686 (SMP w/2 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages binutils depends on:
ii libc6 2.10.2-2 GNU C Library: Shared libraries
ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime
binutils recommends no packages.
Versions of packages binutils suggests:
pn binutils-doc <none> (no description available)
-- no debconf information
--- End Message ---
--- Begin Message ---
Hello!
* yellow <[email protected]> [2010-01-26 22:18:07 CET]:
> There is a big bug with bash and sh.... really huge.
> if [ "$myvariable33" == "${1}" ] ; then
> echo "Make deb and src files..."
> tar xvf "${1}"
> fi
>
> The new bash / sh does not like the ==
That is not a bash unfortunately, that's dash. If your script does like
to make use of bash syntax pretty please adjust your hashbang line
accordingly to read #!/bin/bash instead of #!/bin/sh.
From your additional informations:
> Shell: /bin/sh linked to /bin/dash
The dash is a shell that is shell that tries to be as small as posible
but still POSIX compliant. Please notice that the test syntax with
double equal signs isn't POSIX but an convenient extension that bash
offers - so if you depend on it, please tell your script to use the
bash. :)
Have fun and thanks for your report nevertheless!
Rhonda
--- End Message ---