This PR fix the .gitignore so that it's more optimized.
This PR also fixes both issue #4 and #5:
Issue 4
When running the cat command with a > or >> following, it will create a loop to get multi-line input from the user, which will stop with Ctrl+D command. It will after print the user input the to entered file.
Issue 5
Simply add a boolean variable that tells the script if the selected 'item' is a directory or not. Will output an error if it isn't a directory.
FIXES/FEATURES
This PR fix the
.gitignore
so that it's more optimized.This PR also fixes both issue #4 and #5:
Issue 4
When running the
cat
command with a>
or>>
following, it will create a loop to get multi-line input from the user, which will stop with Ctrl+D command. It will after print the user input the to entered file.Issue 5
Simply add a boolean variable that tells the script if the selected 'item' is a directory or not. Will output an error if it isn't a directory.
Tests
Everything that's been changed is tested.