Permalink
Browse files

in step5, avoid just typing cat

  • Loading branch information...
1 parent 7b77165 commit 413cf12199407b83e170c1f47145591c3fd078d3 @singpolyma committed Jan 6, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 step5
View
1 step5
@@ -7,6 +7,7 @@ fakeshell() {
read -p "$ " -r COMMAND
IFS="$oldifs"
if [ "$COMMAND" = "exit" ]; then exit; fi
+ if [ "$COMMAND" = "cat" ]; then COMMAND="cat --help"; fi
OUTPUT="`eval "$COMMAND"`"
echo "$OUTPUT"
echo

0 comments on commit 413cf12

Please sign in to comment.