ion shell attempts to execute all files in a directory
Created by: TheXDS
-
I agree that I have searched opened and closed issues to prevent duplicates.
Description
if the Ion shell is launched giving it a directory as argument, it will attempt to run every file in that directory.
Environment info
- Operating system: Redox-OS
-
rustc -V
:rustc 1.22.0-nightly (4279e2b4c 2017-10-21)
-
git rev-parse HEAD
:75a41a07c6b5d4f6eb94d229f82894125cf18a80
Steps to reproduce
- Open the terminal.
- Type
ion /
and press enter
Behavior
-
Expected behavior: ion informing me that
/
is not a command. -
Actual behavior: ion takes all files contained in the directory and attempts to run every filename as a command.
-
Proposed solution: Perform sanity checks to arguments passed to Ion, or do alternate things when given a directory as an argument, like, launch ion and switch to that directory.