You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

20 lines
448 B

#!/usr/bin/env bash
set -euo pipefail
IFS='
'
script_dirS=$(cd -P "$(dirname "$BASH_SOURCE")" &>/dev/null && pwd)
challenge() {
$(bash "$script_dirS"/student/input-redirection.sh)
submitted=$(bash "$script_dirS"/show-info.sh)
rm show-info.sh
$(bash "$script_dirS"/solutions/input-redirection.sh)
expected=$(bash "$script_dirS"/show-info.sh)
rm show-info.sh
diff <(echo "$submitted") <(echo "$expected")
}
challenge