Open nestrada2 opened 2 months ago
This sounds like a good project, although I don't think there is any reason to modify kernel space. The stat system call should already be enough for getting file system information. When you get a chance, can you specify the exact test
features you plan to implement?
Hello Mr. Malensek (@malensek), I updated the project specifications.
test
The "test" command evaluates a conditional expression. It is an if statement that will return zero (true) or 1 (false), or greater than 1 (error).
Approach
The "test" command will check if any flags were inputted and, based on the expression, will return a truthy or falsy value. For example,
test -e myfile.txt
will return 0 if that file exists. Will have to use the sys_fstat to obtain information about the specified file.Files to be Modified/Added
user:
Subcommands Implemented in Test
Future Development
Add functionality for more flags Add logical operators for combining expressions Edit sh so that test can be incorporated in shell scripting
References
man test