Eric Blake wrote: > On 05/17/2010 11:29 AM, Eric Blake wrote: >>> +if test ${#SOCKPATH} -lt 108 ; then >> >> Bash-ism. To be portable, you'd have to use something like: >> >> if test `echo "$SOCKPATH" | wc -c` -lt 108; then > > Huh, I stand (partially) corrected. POSIX requires support for ${#foo}. > If we were to use gnulib's init.sh, we would then have the guarantee > that we have enough of a POSIX environment to rely on that particular > construct. But right now, test-lib.sh doesn't quite guarantee > everything provided in gnulib. > > Jim, is it time to modify test-lib.sh to borrow more ideas from gnulib's > init.sh? Sure. init.sh seems to have stabilized, and should be an improvement over test-lib.sh. -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list