summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-05-25 12:32:03 +0200
committerJim Meyering <meyering@redhat.com>2010-05-25 12:32:03 +0200
commit55db9a39a818e82324e1304e5d886aa2cf137092 (patch)
tree0fde7834e3f95ef5fe16207a665864d5689ed3da /src
parent6bc44b5feb03ae7621106e7ee510cd15374e74f8 (diff)
downloadcoreutils-55db9a39a818e82324e1304e5d886aa2cf137092.tar.xz
maint: remove unneeded double quotes on RHS of shell assignments
Run this command: git grep -l 'LC_[A-Z]*="' \ | xargs perl -pi -e 's/(LC_[A-Z]*)="(.*?)"/$1=$2/' * src/Makefile.am: Write LC_ALL=$$locale, not LC_ALL="$$locale". * src/date.c (main): Similar, in a comment. * tests/misc/sort-month: Write LC_ALL=$LOC, not LC_ALL="$LOC".
Diffstat (limited to 'src')
-rw-r--r--src/Makefile.am4
-rw-r--r--src/date.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 4576d2829..0630a069d 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -685,7 +685,7 @@ au_actual = authors-actual
.PHONY: sc_check-AUTHORS
sc_check-AUTHORS: $(all_programs)
@locale=en_US.UTF-8; \
- LC_ALL="$$locale" ./cat --version \
+ LC_ALL=$$locale ./cat --version \
| grep ' Torbjorn ' > /dev/null \
&& { echo "$@: skipping this check"; exit 0; }; \
rm -f $(au_actual) $(au_dotdot); \
@@ -699,7 +699,7 @@ sc_check-AUTHORS: $(all_programs)
elif test "$$i" = test; then \
exe='['; \
fi; \
- LC_ALL="$$locale" ./$$exe --version \
+ LC_ALL=$$locale ./$$exe --version \
| perl -0 -pi -e 's/,\n/, /gm' \
| sed -n -e '/Written by /{ s//'"$$i"': /;' \
-e 's/,* and /, /; s/\.$$//; p; }'; \
diff --git a/src/date.c b/src/date.c
index c39adb1c2..42f334828 100644
--- a/src/date.c
+++ b/src/date.c
@@ -450,7 +450,7 @@ main (int argc, char **argv)
if (! *format)
{
/* Do not wrap the following literal format string with _(...).
- For example, suppose LC_ALL is unset, LC_TIME="POSIX",
+ For example, suppose LC_ALL is unset, LC_TIME=POSIX,
and LANG="ko_KR". In that case, POSIX says that LC_TIME
determines the format and contents of date and time strings
written by date, which means "date" must generate output