delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.5 required=5.0 tests=AWL,BAYES_00,SARE_FROM_CHAR_W1251,SPF_PASS |
X-Spam-Check-By: | sourceware.org |
Date: | Wed, 3 Feb 2010 13:13:29 +0300 |
From: | =?windows-1251?B?yOv8/yDB4PHo7Q==?= <basinilya AT gmail DOT com> |
Reply-To: | =?windows-1251?B?yOv8/yDB4PHo7Q==?= <basinilya AT gmail DOT com> |
Message-ID: | <17272845.20100203131329@gmail.com> |
To: | cygwin AT cygwin DOT com |
Subject: | command fails: expr "-L/usr/lib/gcc/i686-pc-cygwin/4.3.4" : "-L\(.*\)" |
MIME-Version: | 1.0 |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Hi. libtool from "hunspell" package fails with "expr: syntax error" when compiling. Does anyone know a proper fix? After writing a wrapper for "expr" which just prints params I've found that libtool calls: expr "-L/usr/lib/gcc/i686-pc-cygwin/4.3.4" : "-L\(.*\)" This doesnt fail on Linux with coreutils 7.6, but fails on Cygwin with coreutils 7.0 (latest for now). Is it a bug of coreutils 7.0? Adding "--" helps, so I wrote a wrapper for "expr" and put in in PATH: ********************************************************************** #!/bin/sh # Adds "--" before 1st unknown parameter starting with "-" #echo /bin/expr "$@" >&2 known="--help --hel --he --h --version --versio --versi --vers --ver --ve --v" known="$known --bignum --bignu --bign --big --bi --b --no-bignum --no-bignu --no-bign --no-big --no-bi --no-b --no- --no --n" starting= while [ "$1" ]; do case "${1}" in -- ) break ;; -* ) found= for k in $known; do [ "$1" = "$k" ] && { found=y; break; } done if [ -z "$found" ] ; then starting="$starting --" break fi ;; * ) break ;; esac starting="$starting $1" shift done #echo /bin/expr $starting "$@" >&2 /bin/expr $starting "$@" ********************************************************************** -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |