I just implemented a small shell in 29 lines of Python that has support for redirects:
$ ./minishell.py
~~?~~> echo hello
hello
~~0~~> wc -l minishell.py
29 minishell.py
~~0~~> wc -l <minishell.py >report.txt
~~0~~> cat report.txt
29
Hi! I'm Rickard from Sweden. I like programming. I like both the craft of it and also to write software that solves problems. I also like running.
I just implemented a small shell in 29 lines of Python that has support for redirects:
$ ./minishell.py
~~?~~> echo hello
hello
~~0~~> wc -l minishell.py
29 minishell.py
~~0~~> wc -l <minishell.py >report.txt
~~0~~> cat report.txt
29