Skip to content

Commit e0fcfdd

Browse files
committed
Use ‘export VAR=VAL’ syntax
This is OK now that we assume POSIX.2-1992. * Makefile (SETUP_TAR, UTF8_LOCALE_MISSING): * tzselect.ksh (line): * workman.sh (GROFF_NO_SGR): Use ‘export VAR=VAL’ instead of ‘VAR=VAL; export VAR’.
1 parent eba4316 commit e0fcfdd

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ GNUTARFLAGS= --format=pax --pax-option=delete=atime,delete=ctime \
543543
--numeric-owner --owner=0 --group=0 \
544544
--mode=go+u,go-w --sort=name
545545
SETUP_TAR= \
546-
LC_ALL=C && export LC_ALL && \
546+
export LC_ALL=C && \
547547
if tar $(GNUTARFLAGS) --version >/dev/null 2>&1; then \
548548
TAR='tar $(GNUTARFLAGS)'; \
549549
else \
@@ -874,7 +874,7 @@ UTF8_LOCALE_MISSING = \
874874
{ test ! '$(UTF8_LOCALE)' \
875875
|| ! printf 'A\304\200B\n' \
876876
| LC_ALL='$(UTF8_LOCALE)' grep -q '^A.B$$' >/dev/null 2>&1 \
877-
|| { LC_ALL='$(UTF8_LOCALE)'; export LC_ALL; false; }; }
877+
|| { export LC_ALL='$(UTF8_LOCALE)'; false; }; }
878878
879879
character-set.ck: $(ENCHILADA)
880880
$(UTF8_LOCALE_MISSING) || { \

tzselect.ksh

+1-1
Original file line numberDiff line numberDiff line change
@@ -785,7 +785,7 @@ done
785785

786786
case $SHELL in
787787
*csh) file=.login line="setenv TZ '$tz'";;
788-
*) file=.profile line="TZ='$tz'; export TZ"
788+
*) file=.profile line="export TZ='$tz'"
789789
esac
790790

791791
test -t 1 && say >&2 "

workman.sh

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
if (type nroff && type perl) >/dev/null 2>&1; then
88

99
# Tell groff not to emit SGR escape sequences (ANSI color escapes).
10-
GROFF_NO_SGR=1
11-
export GROFF_NO_SGR
10+
export GROFF_NO_SGR=1
1211

1312
echo ".am TH
1413
.hy 0

0 commit comments

Comments
 (0)