[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Re: Stop using "which" in ./configure
From: |
Loïc Minier |
Subject: |
Re: [Qemu-devel] Re: Stop using "which" in ./configure |
Date: |
Wed, 20 Jan 2010 14:49:40 +0100 |
On Wed, Jan 20, 2010, Paolo Bonzini wrote:
> On 01/20/2010 12:37 PM, Loïc Minier wrote:
> >+ # not found
> >+ IFS="$local_ifs"
> If you do this, you should set IFS to space-tab-lf at the beginning of
> the script, like this:
>
> IFS=" "" ""
> "
Are you saying that I can't backup/restore IFS without setting it
first? That would be odd; it works with bash, dash, and zsh here.
Pointers to affected shell would help me avoid other issues with them.
Alternatively, I could set IFS in a subshell.
I checked the autoconf Portable Shell Programming section, but didn't
find a similar recommendation:
http://www.gnu.org/software/autoconf/manual/autoconf.html#index-IFS-1639
> or this (better because it does not rely on embedding whitespace
> characters within the line):
> IFS=`printf ' \t'`"
> "
If we go that route, perhaps IFS="`printf ' \t\n'`" would be more
readable? I'm not sure how common printf is though.
--
Loïc Minier
- [Qemu-devel] Re: [PATCH] Check for sdl-config before calling it, (continued)
- [Qemu-devel] Re: [PATCH] Check for sdl-config before calling it, Måns Rullgård, 2010/01/17
- Re: [Qemu-devel] Re: [PATCH] Check for sdl-config before calling it, Stefan Weil, 2010/01/17
- [Qemu-devel] Re: [PATCH] Check for sdl-config before calling it, Måns Rullgård, 2010/01/17
- [Qemu-devel] Stop using "which" in ./configure, Loïc Minier, 2010/01/19
- Re: [Qemu-devel] Stop using "which" in ./configure, Loïc Minier, 2010/01/19
- Re: [Qemu-devel] Stop using "which" in ./configure, Stefan Weil, 2010/01/19
- Re: [Qemu-devel] Stop using "which" in ./configure, Loïc Minier, 2010/01/20
- [Qemu-devel] Re: Stop using "which" in ./configure, Måns Rullgård, 2010/01/19
- Re: [Qemu-devel] Re: Stop using "which" in ./configure, Loïc Minier, 2010/01/20
- [Qemu-devel] Re: Stop using "which" in ./configure, Paolo Bonzini, 2010/01/20
- Re: [Qemu-devel] Re: Stop using "which" in ./configure,
Loïc Minier <=
- [Qemu-devel] Re: Stop using "which" in ./configure, Paolo Bonzini, 2010/01/20
- Re: [Qemu-devel] Re: Stop using "which" in ./configure, Loïc Minier, 2010/01/20
- [Qemu-devel] Re: Stop using "which" in ./configure, Måns Rullgård, 2010/01/20
- Re: [Qemu-devel] Re: Stop using "which" in ./configure, Loïc Minier, 2010/01/21
- [Qemu-devel] Re: Stop using "which" in ./configure, Juan Quintela, 2010/01/21
- [Qemu-devel] Re: Stop using "which" in ./configure, Måns Rullgård, 2010/01/21
- Re: [Qemu-devel] Re: Stop using "which" in ./configure, Loïc Minier, 2010/01/26
- Re: [Qemu-devel] Re: Stop using "which" in ./configure, Blue Swirl, 2010/01/26
- [Qemu-devel] [PATCH 1/3] Check for sdl-config before calling it, Loïc Minier, 2010/01/27
- [Qemu-devel] [PATCH 2/3] Add and use has() and path_of() funcs, Loïc Minier, 2010/01/27