PiRSquared17 / warc-tools

Automatically exported from code.google.com/p/warc-tools
0 stars 0 forks source link

test.sh fails on Ubuntu because "let" command is not POSIX compliant #3

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
At least, I'm pretty sure that is what happens.

What steps will reproduce the problem?
1. Install warc-tools on unix system where /bin/sh is NOT a symlink to
/bin/bash. (For example, Ubuntu uses dash: https://wiki.ubuntu.com/DashAsBinSh)
2. Run "make test".

What is the expected output? What do you see instead?

test.sh output looks like this:

utest/test.sh: 61: let: not found
+ do test: utest/string [PASS]
utest/test.sh: 61: let: not found
+ do test: utest/list [PASS]
utest/test.sh: 61: let: not found
+ do test: utest/anvl [PASS]

I've worked around by calling /bin/bash directly.

Original issue reported on code.google.com by gordon.p...@gmail.com on 10 Mar 2008 at 12:25

GoogleCodeExporter commented 9 years ago
changed all the

#!/bin/sh

with:

#!/usr/bin/env bash

Original comment by voidptr...@gmail.com on 10 Mar 2008 at 9:14