This is the mail archive of the crossgcc@sourceware.org mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ct-nt + bash detection


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]