From 82ebd2e467651cc6ec63d8a1bc9b6e5cedb01410 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Sun, 8 Mar 2009 19:32:03 +0000 Subject: Fixed strings.sh to work with NetBSD. Fixed various lint warnings. --- strings.sh | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'strings.sh') diff --git a/strings.sh b/strings.sh index 18c54f28..54a00d4e 100644 --- a/strings.sh +++ b/strings.sh @@ -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 <