ct-nt + bash detection

Yann E. MORIN yann.morin.1998@anciens.enib.fr
Fri Sep 14 18:29:00 GMT 2007


Hello Enrico!
Hello All!

On Friday 14 September 2007 14:11, Enrico Weigelt wrote:
> I've just grabbed the current trunk and discovered an problem
> with the bash version detection: (./configure:127)
> For some strange reason, my bash (@Gentoo) reports some uncommon (?)
> version, which ct-ng couldn't handle:
>     GNU bash, version 3.2.17(1)-release (i686-pc-linux-gnu)

Mine (Debian testing) reports:
  GNU bash, version 3.1.17(1)-release (x86_64-pc-linux-gnu)

> I replaced the line to:
>     bash_version=`/bin/bash --version |head -n 1 |cut -d ' ' -f 4|sed -e "s/\..*//g;"`

Arrgh! This is because Gentoo has /bin/sh aliased to dash. Argghh. I've been
bitten again by bashisms in ./configure... :-/

Thanks for spotting it!

By the way, if someone knows about a _readable_ spec for the POSIX shell, I'd
welcome a pointer.

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +0/33 662376056 | Software  Designer | \ / CAMPAIGN     |   ^                |
| --==< °_° >==-- °------------.-------:  X  AGAINST      |  /e\  There is no  |
| http://ymorin.is-a-geek.org/ | (*_*) | / \ HTML MAIL    |  """  conspiracy.  |
°------------------------------°-------°------------------°--------------------°


--
For unsubscribe information see http://sourceware.org/lists.html#faq



More information about the crossgcc mailing list