Bug#342255: Starting script do not follow POSIX
Michael Koch
konqueror at gmx.de
Thu Dec 15 14:59:21 UTC 2005
On Tue, Dec 06, 2005 at 05:25:00PM +0200, Juhapekka Tolvanen wrote:
>
> Package: eclipse-platform-common
> Version: 3.1.1-6
> Severity: normal
>
> juhtolv at heresy:/home/juhtolv % eclipse
> zsh: correct 'eclipse' to '.eclipse' [nyae]? n
> /usr/bin/eclipse: line 77: syntax error near unexpected token `<'
> /usr/bin/eclipse: line 77: ` done < <(cat /etc/eclipse/java_home | grep -v '^#' | grep -v '^$')'
> zsh: 11541 exit 2 eclipse
> juhtolv at heresy:/home/juhtolv % rm -rf .eclipse
> juhtolv at heresy:/home/juhtolv % eclipse
> /usr/bin/eclipse: line 77: syntax error near unexpected token `<'
> /usr/bin/eclipse: line 77: ` done < <(cat /etc/eclipse/java_home | grep -v '^#' | grep -v '^$')'
> zsh: 11549 exit 2 eclipse
> juhtolv at heresy:/home/juhtolv % unset POSIXLY_CORRECT
> juhtolv at heresy:/home/juhtolv % unset POSIX_ME_HARDER
> juhtolv at heresy:/home/juhtolv % eclipse
> zsh: correct 'eclipse' to '.eclipse' [nyae]? n
> searching for compatible vm...
> testing /usr/lib/jvm/java-gcj...found
This script does not claim to be POSIX compliant. It uses /bin/bash as
shell explicitely so it is legal to use bash extensions. I wonder why
you run it with zsh when executing it. Have you edited the script and
use zsh now?
I agree that we should make this script POSIX compliant and run it with
/bin/sh. That should be a goal.
After installing zsh on my mashing and running the script with it I
cannot reproduce the bug. Can you write a patch that fixes the problem
for you? Or give more infos about your sustem? Is bash installed at all?
Cheers,
Michael
--
Escape the Java Trap with GNU Classpath!
http://www.gnu.org/philosophy/java-trap.html
Join the community at http://planet.classpath.org/
More information about the pkg-java-maintainers
mailing list