Ralf Wildenhues wrote:
> 2007-07-01 Bruno Haible <[EMAIL PROTECTED]>
> Eric Blake <[EMAIL PROTECTED]>
> Ralf Wildenhues <[EMAIL PROTECTED]>
>
> * gnulib-tool (self_abspathname): Fix algorithm to cope with
> empty components in $PATH, denoting '.'.
Thanks. I unta
Hello Bruno,
* Bruno Haible wrote on Sun, Jul 01, 2007 at 12:43:33PM CEST:
>
> Yes. Your findings and my and Eric's comments [1][2][3] are giving enough
> hints how a portable and efficient solution can look like, I think?
OK thanks. I installed this.
Cheers,
Ralf
2007-07-01 Bruno Haible <[E
Hello Ralf,
> This still needs to be addressed.
Yes. Your findings and my and Eric's comments [1][2][3] are giving enough
hints how a portable and efficient solution can look like, I think?
pathx="$PATH"
case ":$PATH:" in
*::*)
pathx=`echo ":$PATH:" | sed -e 's/:::*/:.:/g' -e 's/^:
Paul Eggert wrote:
> It's fine with me if there's a test like this:
>
> case $PATH in
> *::* | :* | *:) echo 'Please use "." rather than empty entries in PATH.";
> exit 1
> esac
It's not fine with me:
- It's not the role of any particular program to tell the user how to set
his environment
Hello Bruno, all,
* Ralf Wildenhues wrote on Sat, Jun 23, 2007 at 03:18:49PM CEST:
>
> * gnulib-tool: Fix iteration over $PATH by IFS by adding `:' at
> the end. Fix indentation.
> (func_create_megatestdir): Likewise.
> Report by Bruno Haible.
This still needs to be addr
Bruno Haible <[EMAIL PROTECTED]> writes:
> Regression: PATH values with a trailing empty field, such as
> PATH=/usr/bin:/bin:
> are not handled correctly.
I see the problem in general, but is that an issue for this particular
case? gnulib-tool needn't cater to empty entries in PATH. It's fine
* Eric Blake wrote on Sat, Jun 23, 2007 at 11:31:12PM CEST:
> According to Bruno Haible on 6/23/2007 1:09 PM:
> > But then use IFS (so that PATH elements containing spaces are handled
> > correctly), ignoring empty fields from the cases C and D. In summary,
> > something like this:
> >
> > pathx
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
According to Bruno Haible on 6/23/2007 1:09 PM:
> But then use IFS (so that PATH elements containing spaces are handled
> correctly), ignoring empty fields from the cases C and D. In summary,
> something like this:
>
> pathx=`echo ":$PATH:" | sed -e
Hi Ralf.
> This isn't reliable either: bash 3.1.17 and ksh do this:
> $ ( d=:a:b:; IFS=:; for i in $d ; do echo .$i. ; done )
> ..
> .a.
> .b.
>
> but pdksh does this:
> $ ( d=:a:b:; IFS=:; for i in $d ; do echo .$i. ; done )
> ..
> .a.
> .b.
> ..
This is only the tip of the iceberg. I tested al
* Ralf Wildenhues wrote on Sat, Jun 23, 2007 at 03:18:49PM CEST:
> +IFS=:
> +for d in $PATH:; do
This isn't reliable either: bash 3.1.17 and ksh do this:
$ ( d=:a:b:; IFS=:; for i in $d ; do echo .$i. ; done )
..
.a.
.b.
but pdksh does this:
$ ( d=:a:b:; IFS=:; for i in $d ; do echo .$i.
Hello Bruno,
* Bruno Haible wrote on Sat, Jun 23, 2007 at 02:53:41PM CEST:
> Ralf Wildenhues wrote:
> > Another rough pass over gnulib-tool's tendency to spawn more processes
> > than it needs to.
>
> Why not. But why don't you concentrate on the loops of func_import when
> doing that? gnulib-too
Ralf Wildenhues wrote:
> Another rough pass over gnulib-tool's tendency to spawn more processes
> than it needs to.
Why not. But why don't you concentrate on the loops of func_import when
doing that? gnulib-tool will not become measurably faster by optimizing
code that is executed only once.
>
Hello Paul,
* Paul Eggert wrote on Fri, Jun 22, 2007 at 11:43:00PM CEST:
> Ralf Wildenhues <[EMAIL PROTECTED]> writes:
>
> > + if test -z "$self_abspathname"; then
>
> self_abspathname should be initialized to the empty string, for this
> test to work reliably (this problem is present in the cu
Ralf Wildenhues <[EMAIL PROTECTED]> writes:
> + if test -z "$self_abspathname"; then
self_abspathname should be initialized to the empty string, for this
test to work reliably (this problem is present in the current version).
Otherwise, it looks good to me.
14 matches
Mail list logo