I wanted to give user interaction that actually gave a choice rather than use a "dummy" value. So I came accross the if..then..else..fi thing at [url]http://bash.cyberciti.biz/guide/If..else..fi[/url] among other places. If I use this something like:
[code]if test var -eq val
then
command executed successfully
execute all commands up to else statement
or to fi if there is no else statement
else
if command failed then
execute all commands up to fi
fi[/code]
Or
[code]##!/bin/bash
read -p "Enter a password" pass
if test "$pass" = "jerry"
then
echo "Password verified."
else
echo "Access denied."
fi[/code]
Would that account for "has user interaction" or more along the lines of:
No credit for any task which contains unoriginal script code that:
Doesn’t give full credit to the original author
Doesn’t indicate where the code was obtained from
Doesn’t include licensing terms
Violates copyright or licensing terms
Also I wanted an infinite loop so I used:
while :
do
done
Is this somethig that I have to give credit to the author?