pileon / shelley Goto Github PK
View Code? Open in Web Editor NEWShelley is a simple shell made for experimentation and as a showcase
Shelley is a simple shell made for experimentation and as a showcase
Design, requirements, use-cases or user stories, initial milestones.
after
git clone [email protected]:pileon/shelley.git
mkdir _Build
cd _Build
cmake ..
make
[ 33%] Building CXX object src/CMakeFiles/shelley.dir/shelley.cpp.o
/usr/src/Shells/shelley/src/shelley.cpp: In function ‘void {anonymous}::execute_command(const command&)’:
/usr/src/Shells/shelley/src/shelley.cpp:49:59: error: ‘strerror’ was not declared in this scope; did you mean ‘stderr’?
49 | std::cerr << "shelley: " << cmd[0] << ": " << strerror(errno) << '\n';
| ^~~~~~~~
| stderr
/usr/src/Shells/shelley/src/shelley.cpp: In function ‘void {anonymous}::wait()’:
/usr/src/Shells/shelley/src/shelley.cpp:57:81: error: ‘strerror’ was not declared in this scope; did you mean ‘stderr’?
57 | std::cerr << "Error waiting for child process: " << errno << ' ' << strerror(errno) << '\n';
| ^~~~~~~~
| stderr
/usr/src/Shells/shelley/src/shelley.cpp: In function ‘void {anonymous}::process_commands(const std::vector<std::vector<std::__cxx11::basic_string > >&)’:
/usr/src/Shells/shelley/src/shelley.cpp:81:75: error: ‘strerror’ was not declared in this scope; did you mean ‘stderr’?
81 | std::cerr << "Error forking process: " << errno << ' ' << strerror(errno) << '\n';
| ^~~~~~~~
| stderr
make[2]: *** [src/CMakeFiles/shelley.dir/build.make:76: src/CMakeFiles/shelley.dir/shelley.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:98: src/CMakeFiles/shelley.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
Add more unit-testing
Testing the functions in the utility
namespace.
Testing get_input
.
Testing the whole process-fork-wait mechanism is hard, as is the process-fork-exec mechanism.
Show a simple prompt so the user knows when to input commands.
Simple function to change directory.
No special path-parsing (like ~
) handled
Check entered commands for built-in commands.
Currently will only support the cd
command.
Add build-target to run code coverage using the unit-tests.
Will simply split on white-space.
' '
).0
) is the commandDo the prompting, command parsing and command execution in a loop.
Read a single line of input from standard input and store in a string.
This is a simple step to prepare for command sequencing later.
A build-target to run Valgrind with the unit tests.
Make use of the Travis CI continuous integration system.
Should only build develop
, master
and the release branches.
Specifically handle tilde-paths, like e.g.
~/path
for paths relative to the users home directory~user/path
for paths relative to another userA declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.