Source-Changes-HG archive

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

[src/trunk]: src/games/fortune/datfiles Don't put [] around the strings passe...



details:   https://anonhg.NetBSD.org/src/rev/f4b6b382c704
branches:  trunk
changeset: 521422:f4b6b382c704
user:      tv <tv%NetBSD.org@localhost>
date:      Wed Jan 30 19:41:39 2002 +0000

description:
Don't put [] around the strings passed to tr -- those can be interpreted
by shells.  Just quote 'em.

diffstat:

 games/fortune/datfiles/Makefile |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (42 lines):

diff -r 8a8a8cc2a08d -r f4b6b382c704 games/fortune/datfiles/Makefile
--- a/games/fortune/datfiles/Makefile   Wed Jan 30 17:43:52 2002 +0000
+++ b/games/fortune/datfiles/Makefile   Wed Jan 30 19:41:39 2002 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: Makefile,v 1.31 2001/10/20 09:33:39 proff Exp $
+#      $NetBSD: Makefile,v 1.32 2002/01/30 19:41:39 tv Exp $
 #      @(#)Makefile    8.2 (Berkeley) 4/19/94
 
 .include <bsd.own.mk>                  # for INSTALL_OFFENSIVE_FORTUNES
@@ -49,27 +49,27 @@
 # Obscene fortunes: we have to build source and data files
 
 fortunes-o: fortunes-o.${TYPE}
-       tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
+       tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
 fortunes-o.dat: fortunes-o
        ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
 
 fortunes2-o: fortunes2-o.${TYPE}
-       tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
+       tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
 fortunes2-o.dat: fortunes2-o
        ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
 
 limerick-o: limerick-o.${TYPE}
-       tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
+       tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
 limerick-o.dat: limerick-o
        ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
 
 unamerican-o: unamerican-o.${TYPE}
-       tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
+       tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
 unamerican-o.dat: unamerican-o
        ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
 
 netbsd-o: netbsd-o.${TYPE}
-       tr [a-zA-Z] [n-za-mN-ZA-M] < ${.ALLSRC} > ${.TARGET}
+       tr 'a-zA-Z' 'n-za-mN-ZA-M' < ${.ALLSRC} > ${.TARGET}
 netbsd-o.dat: netbsd-o
        ${STRFILE} -rsx ${.ALLSRC} ${.TARGET}
 



Home | Main Index | Thread Index | Old Index