This is a shell for operating systems, not an interpreter for Pascal!
This has basic things of a shell:
-
Customizable shell prompt
-
Switching between directories
-
Command history (in fact it works on some platforms without any code from me - yes from RTL!)
This shell is mainly made for FPOS (Free Pascal Operating System) but also available for other OSes to use.
Install make, git and of course fpc.
Clone this project.
Run make all
or make build
to fetch submodules and build. After that run src/fsh
.
Set NO_SMARTLINK
to 1 to turn off smart linking option for fpc, also NO_STRIP
to 1 to stop stripping the binary. Set DEBUG
to 1 to add developer-oriented (add debug symbols etc) to the compiler. All of these are environment variables.
Run the program with DEBUG=1
will enable FPSH's debugging messages, even in production builds.
-
Add
popd
andpushd
implementations (testing right now) -
Add aliases support (partially works)
-
Add environment variables support (soon)