I am using Cosmos to make a simple OS to understand a bit about it. If I want to make a command line called echo that echos user's input, first I need to check if the input has "echo" in front of it. For example, if i input "echo hello world", I want my VMware to echo "hello world" because echo is my new command line.
What I tried is
String input = Console.ReadLine();
if (input.Contains("echo")) {
Console.WriteLine(input}
}
It's not efficient. First, VMware says
IndexOf(..., StringComparison) not fully supported yet!
And the user might type "echo" in the middle of his string, not as the command.
Are there any efficient ways to solve this?