Skip to Content.
Sympa Menu

ndt-users - dash compatibility

Subject: ndt-users list created

List archive

dash compatibility


Chronological Thread 
  • From: <>
  • To:
  • Subject: dash compatibility
  • Date: Fri, 15 May 2015 08:09:49 +0000 (UTC)

Hello,

I am compiling 3.7.0 under the dash shell and I've noticed an incompatibility
in the 'if test' syntax used in the configure script.

$ bash -c "if test 1 == 1; then printf 'ok'; fi"
ok

$ dash -c "if test 1 == 1; then printf 'ok'; fi"
dash: 1: test: 1: unexpected operator

Single equal signs work fine in both shells.

This of course is nothing sed can't fix (I'm using sed -i 's/\(if
test.*\)==/\1=/g' configure), but you may want to consider retouching the
configure script.

Cheers,
Andrea


  • dash compatibility, accounts.lists.ndt, 05/15/2015

Archive powered by MHonArc 2.6.16.

Top of Page