constructs generated by autoconf do not work in the ash shell

Bug #612880 reported by Mark Hobley
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
autoconf2.64 (Debian)
New
Undecided
Unassigned
autoconf2.64 (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: autoconf2.64

Some versions of the ash shell will not allow redirection to a stream number held in a variable:

  # This construct does not work in some versions of the ash shell
  echo $1 >&$2

The autoconf tool sometimes generates scripts using this construct, The following is an example of a code snippet using this construct in a configure script:

  if test "$3"; then as_lineno=${as_lineno-"$2"}
    as_lineno_stack=as_lineno_stack=$as_lineno_stack
    $as_echo "$as_me:${as_lineno-$LINENUM}: error: $1" >&$3
  fi

(I think this is coming from the _AS_ECHO_LOG macro).

Mark.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.