=================================================================== RCS file: /cvs/mandoc/Attic/strings.sh,v retrieving revision 1.2 retrieving revision 1.3 diff -u -p -r1.2 -r1.3 --- mandoc/Attic/strings.sh 2009/03/06 14:24:49 1.2 +++ mandoc/Attic/strings.sh 2009/03/08 19:32:03 1.3 @@ -1,5 +1,5 @@ #! /bin/sh -# $Id: strings.sh,v 1.2 2009/03/06 14:24:49 kristaps Exp $ +# $Id: strings.sh,v 1.3 2009/03/08 19:32:03 kristaps Exp $ # strings.sh [-o output] name input # @@ -45,11 +45,11 @@ fi input=$2 if [ "$output" ]; then - exec 1<>$output + exec >$output fi if [ "$input" ]; then - exec 0<>$input + exec <$input fi cat <