A modern Unix shell implementation in Fortran 2018 with advanced features
v1.0.1Pipes, here-strings, process substitution, and comprehensive redirection support
Loops, functions, local variables, and control flow constructs
Background jobs, suspend/resume, and process group management
Glob patterns (*,?,[]), recursive matching, and sorting
Built-in monitoring, memory pools, and optimization
Comprehensive test suite and robust error management
# Basic shell usage
fortsh
# Performance monitoring
export FORTSH_PERF=1
fortsh
# Advanced scripting
for file in *.txt; do
echo "Processing: $file"
done
# Job control
command & # Run in background
jobs # List jobs
fg %1 # Bring to foreground
# Pattern matching
echo *.{txt,log} # Glob expansion
echo test-[0-9]* # Character classes
# Enable performance monitoring
perf on
# View memory usage
memory
# Built-in commands provide runtime stats
# - Parse time: ~0.009ms average
# - Execution time: ~0.115ms average
# - Memory pools for optimization
# - Automatic memory optimization
MIT License - Free and open source