Create a pipe basic type to make pipe platform-independent
Plus some new interfaces
remove some functions from the interfaces and pipex
Writed a pipe interface and write a test unit(getter.cpp,sender.cpp and pipex.cpp)
To run this test code,you *MUST* do as following:
1.Type `make pipetest' in you terminal,and then
2.Type ./pipetest
This is just a test for the functions of the class pipex.
Fixed some bugs in testpipe.cpp and pipex.cpp
parser.cpp recognize the sentence with "|";
console.cpp can make the change "|" to NULL when it send
to the function of pipe it can be used;
For storing the result given by the parser,wrote the class exe_list
1.this class is to store the parser's result and prepare for the executing
2.use it as a container when parse the token from the buffer(Using parser.scan())
3.NOTE That class information,DO NOT delete the pointer you pushed in beyond the class exe_list
Merge branch 'pipe-parse' of https://github.com/lessmoon/ashell into fzj/do-parse
not finish
console.cpp recover
exe_utils.cpp add the function clear_arg() but have no use now
exe_utils.h include the define of the clear_arg()
parser.cpp fixed the do_parser() and include a function analysis()
analysis is not finish
is for analyse how the sentence to execute.
it has the problem about the "out if range"
do "make all" can run it
it has the problem about "out of range"
do-parse is not finish
make the do-parse()
make_einfo() use to form the einfo;
analysis() use to analyse the order;
ctrlpipe() use to control the pipe.
function pushpath() is to push the pathname to einfo
make_einfo() judge the option
plus one element for the pipe enumeration NONE,standing for not tie
it has the problem with the "pipe_1 = pipe_2"
fixed the problem of the pipe
merge the ctrlpipe() with the analysis()
makefile add "-g"
parser.cpp has noting changed
buglist notes the bug of the progrem;