bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bash 2.05.0(1)-release FreeBSD bug


From: pilkam
Subject: bash 2.05.0(1)-release FreeBSD bug
Date: Fri, 14 Sep 2001 00:48:07 +0200 (CEST)

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: freebsd4.0
Compiler: cc
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='freebsd4.0' -DCONF_MACHTYPE='i386--freebsd4.0' -DCONF_VENDOR='' 
-DSHELL  -DHAVE_CONFIG_H   -I. -I/usr/local/include -I. -I./include -I./lib 
-I/usr/local/include -O -pipe
uname output: FreeBSD decef.elf.stuba.sk 4.1.1-RELEASE FreeBSD 4.1.1-RELEASE 
#0: Mon Jan 29 09:53:26 CET 2001     
address@hidden:/usr/src/sys/compile/DECEFRRAOR  i386
Machine Type: i386--freebsd4.0

Bash Version: 2.05
Patch Level: 0
Release Status: release

Description:
  I downloaded file ftp://ftp.gnu.org/gnu/bash/bash-2.05.tar.gz. If I compile 
it on FreeBSD
  4.1.1, shell script below doesn't work (and it's supposed to, as i believe). 
However, if
  I compile under Mandrake 8.0, everything is just fine.

  Note that this causes annoying compatibility problems. For example, configure 
script
  generated by autoconf doesn't work on FreeBSD systems if you use "function" 
keyword
  somewhere.

Repeat-By:
  Run this script after you compiled bash on FreeBSD system:

  ===========
  #!/bin/sh

  f1 () {
    echo "f1 passed"
  }

  function f2 () {
    echo "f2 passed"
  }

  f1
  f2
  ===========

  Output on Mandrake:
  $ ./test.sh
  f1 passed
  f2 passed
  $

  Output on FreeBSD:
  $ ./test.sh
  ./test.sh: 7: Syntax error: "(" unexpected
  $

Fix:
        [Description of how to fix the problem.  If you don't know a
        fix for the problem, don't include this section.]



reply via email to

[Prev in Thread] Current Thread [Next in Thread]