bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gnulib-tool nits


From: Ralf Wildenhues
Subject: Re: gnulib-tool nits
Date: Sat, 23 Jun 2007 15:40:04 +0200
User-agent: Mutt/1.5.13 (2006-08-11)

* 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. ; done )
..
.a.
.b.
..

So effectively the above starts adding '.' in $PATH for pdksh.
Similar for zsh.  And I've only tested on GNU/Linux so far.

Yucc.  This is uglier than I thought, adding in that I think SUSv3
wording is saying that pdksh is right and bash is wrong.  :-/

Cheers,
Ralf




reply via email to

[Prev in Thread] Current Thread [Next in Thread]