[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib-tool incorrectly handles library names with dashes
From: |
Bruno Haible |
Subject: |
Re: gnulib-tool incorrectly handles library names with dashes |
Date: |
Thu, 5 Jul 2007 13:45:23 +0200 |
User-agent: |
KMail/1.5.4 |
Jim Meyering wrote:
> I know you didn't change the single quotes (maybe it's Bruno's
> stylistic preference to use them?)
Yes, it's my stylistic preference.
> but they are superfluous. There's less syntax this way:
>
> libname_upper=`echo "$libname" | LC_ALL=C tr a-z- A-Z_`
But it's not more readable this way.
One can remove the surrounding quotes of sed arguments:
sed -e s/\\/[^/]\*\$//
but it doesn't become more readable this way.
One can remove the surrounding quotes in variable assignments:
backup_file=$dir/$file~
but it's more maintainable this way:
backup_file="$dir/$file"'~'
Bruno