Replaced 'echo' with 'printf' throughout.
1 parent 48f3dd4 commit 236b5e67d61ef97ec10fa0b00a18b7ad982a6085
@tundra tundra authored on 5 Jun 2012
Showing 1 changed file
View
8
tpromptuser.sh
#!/bin/sh
# tpromptuser.sh - User Prompting From Shell With validation
# Copyright (c) 2010, TundraWare Inc, Des Plaines, IL USA
# All Rights Reserved
# $Id: tpromptuser.sh,v 1.108 2010/10/07 22:35:01 tundra Exp $
# $Id: tpromptuser.sh,v 1.109 2012/06/05 19:28:05 tundra Exp $
 
#####
# You are hereby granted a non-exclusive license to do whatever you
# like with this software so long as you understand this is
done
if [ _$DONE = _False ]
then
echo "Invalid Response! Must Be One Of: $answers"
printf "Invalid Response! Must Be One Of: $answers\n"
fi
fi
done
PROMPTLIST="foo bar baz bat"
 
# Display the records for purposes of this example only
 
echo "Before: foo->$foo bar->$bar baz->$baz bat->$bat"
printf "Before: foo->$foo bar->$bar baz->$baz bat->$bat\n"
 
 
# Go get the user input and validate it
 
 
 
# Dump results for sake of this example only
 
echo "After: foo->$foo bar->$bar baz->$baz bat->$bat"
printf "After: foo->$foo bar->$bar baz->$baz bat->$bat\n"