- UNIX system
- GNU Readline
- Curses (for GNU Readline)
- GNU Bison
git clone https://github.com/kirpichik/yxsh.git
cd yxsh
If you have globally installed GNU Readline
and
GNU Bison
this step can be skipped.
- Open
Makefile
- Edit
BISON
,INCLUDES
andREADLINE_LIB
variables for your environment.
GNU Bison
compiler for parser generation.
Flags to external libraries for include GNU Readline
. Example:
INCLUDE=-I/usr/local/opt/readline/include
Flags to external libraries for linking GNU Readline
.
Example for dynamic linking:
READLINE_LIB=-lcurses -L/usr/local/opt/readline/lib -lreadline
Or for static linking:
READLINE_LIB=-lcurses /usr/local/opt/readline/lib/libreadline.a
make
./yxsh
All the features described in the shell requirements, excluding loops, conditional jumps and logical expressions.