[LLVMbugs] [Bug 2979] New: lua assumes bash shell

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Oct 29 08:13:37 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2979

           Summary: lua assumes bash shell
           Product: Test Suite
           Version: trunk
          Platform: Other
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Programs Tests
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baldrick at free.fr
                CC: llvmbugs at cs.uiuc.edu


The lua test's generate_inputs.sh contains some bashisms
(in spite of starting #!/bin/sh) which cause it to fail
here:

        declare -i count=$2

^ declare is a bashism (sh error: "declare: not found")

        output=${1/.txt/${3}.txt}
^ sh error: "bad substitution"

                let count=$((count - 50))
^ I don't think sh allows this construction.


-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list