| 1 | <!DOCTYPE html> |
| 2 | <html lang="en"> |
| 3 | <head> |
| 4 | <meta charset="UTF-8"> |
| 5 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 6 | <title>Fortsh - Fortran Shell</title> |
| 7 | <style> |
| 8 | body { font-family: 'Segoe UI', system-ui, sans-serif; line-height: 1.6; max-width: 900px; margin: 0 auto; padding: 20px; } |
| 9 | .header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 30px; border-radius: 8px; margin-bottom: 30px; } |
| 10 | .feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin: 20px 0; } |
| 11 | .feature-card { background: #f8f9fa; padding: 20px; border-radius: 8px; border-left: 4px solid #667eea; } |
| 12 | .install-box { background: #2d3748; color: #e2e8f0; padding: 20px; border-radius: 8px; font-family: 'Monaco', 'Menlo', monospace; } |
| 13 | .version-badge { background: #38a169; color: white; padding: 4px 8px; border-radius: 4px; font-size: 0.8em; } |
| 14 | code { background: #f1f3f4; padding: 2px 6px; border-radius: 4px; font-size: 0.9em; } |
| 15 | pre { background: #2d3748; color: #e2e8f0; padding: 15px; border-radius: 8px; overflow-x: auto; } |
| 16 | </style> |
| 17 | </head> |
| 18 | <body> |
| 19 | <div class="header"> |
| 20 | <h1>🐚 Fortsh - Fortran Shell</h1> |
| 21 | <p>A modern Unix shell implementation in Fortran 2018 with advanced features</p> |
| 22 | <span class="version-badge">v1.0.0</span> |
| 23 | </div> |
| 24 | |
| 25 | <h2>🚀 Features</h2> |
| 26 | <div class="feature-grid"> |
| 27 | <div class="feature-card"> |
| 28 | <h3>🔧 Advanced I/O</h3> |
| 29 | <p>Pipes, here-strings, process substitution, and comprehensive redirection support</p> |
| 30 | </div> |
| 31 | <div class="feature-card"> |
| 32 | <h3>📜 Full Scripting</h3> |
| 33 | <p>Loops, functions, local variables, and control flow constructs</p> |
| 34 | </div> |
| 35 | <div class="feature-card"> |
| 36 | <h3>⚙️ Job Control</h3> |
| 37 | <p>Background jobs, suspend/resume, and process group management</p> |
| 38 | </div> |
| 39 | <div class="feature-card"> |
| 40 | <h3>🔍 Pattern Matching</h3> |
| 41 | <p>Glob patterns (*,?,[]), recursive matching, and sorting</p> |
| 42 | </div> |
| 43 | <div class="feature-card"> |
| 44 | <h3>📊 Performance</h3> |
| 45 | <p>Built-in monitoring, memory pools, and optimization</p> |
| 46 | </div> |
| 47 | <div class="feature-card"> |
| 48 | <h3>🛡️ Error Handling</h3> |
| 49 | <p>Comprehensive test suite and robust error management</p> |
| 50 | </div> |
| 51 | </div> |
| 52 | |
| 53 | <h2>📦 Installation</h2> |
| 54 | |
| 55 | <h3>Method 1: YUM/DNF Repository (Recommended)</h3> |
| 56 | <div class="install-box"> |
| 57 | <div># Add repository</div> |
| 58 | <div>sudo wget -O /etc/yum.repos.d/fortsh.repo https://repos.musicsian.com/fortsh.repo</div> |
| 59 | <div><br># Install fortsh</div> |
| 60 | <div>sudo dnf install fortsh</div> |
| 61 | </div> |
| 62 | |
| 63 | <h3>Method 2: Direct RPM Installation</h3> |
| 64 | <div class="install-box"> |
| 65 | <div>sudo dnf install https://repos.musicsian.com/RPMS/fortsh-1.0.0-1.el9.x86_64.rpm</div> |
| 66 | </div> |
| 67 | |
| 68 | <h3>Method 3: Build from Source</h3> |
| 69 | <div class="install-box"> |
| 70 | <div>git clone https://github.com/musicsian/fortsh.git</div> |
| 71 | <div>cd fortsh</div> |
| 72 | <div>make all</div> |
| 73 | <div>make dev-install</div> |
| 74 | </div> |
| 75 | |
| 76 | <h2>🎯 Usage Examples</h2> |
| 77 | <pre><code># Basic shell usage |
| 78 | fortsh |
| 79 | |
| 80 | # Performance monitoring |
| 81 | export FORTSH_PERF=1 |
| 82 | fortsh |
| 83 | |
| 84 | # Advanced scripting |
| 85 | for file in *.txt; do |
| 86 | echo "Processing: $file" |
| 87 | done |
| 88 | |
| 89 | # Job control |
| 90 | command & # Run in background |
| 91 | jobs # List jobs |
| 92 | fg %1 # Bring to foreground |
| 93 | |
| 94 | # Pattern matching |
| 95 | echo *.{txt,log} # Glob expansion |
| 96 | echo test-[0-9]* # Character classes</code></pre> |
| 97 | |
| 98 | <h2>⚡ Performance Features</h2> |
| 99 | <pre><code># Enable performance monitoring |
| 100 | perf on |
| 101 | |
| 102 | # View memory usage |
| 103 | memory |
| 104 | |
| 105 | # Built-in commands provide runtime stats |
| 106 | # - Parse time: ~0.009ms average |
| 107 | # - Execution time: ~0.115ms average |
| 108 | # - Memory pools for optimization |
| 109 | # - Automatic memory optimization</code></pre> |
| 110 | |
| 111 | <h2>📋 Requirements</h2> |
| 112 | <ul> |
| 113 | <li><strong>OS</strong>: RHEL 9, CentOS Stream 9, Rocky Linux 9, AlmaLinux 9, Fedora</li> |
| 114 | <li><strong>Architecture</strong>: x86_64</li> |
| 115 | <li><strong>Build Dependencies</strong>: gfortran >= 11.0, make</li> |
| 116 | <li><strong>Runtime Dependencies</strong>: glibc</li> |
| 117 | </ul> |
| 118 | |
| 119 | <h2>🔗 Links</h2> |
| 120 | <ul> |
| 121 | <li><a href="https://github.com/musicsian/fortsh">Source Code</a></li> |
| 122 | <li><a href="https://repos.musicsian.com/fortsh.repo">YUM Repository File</a></li> |
| 123 | <li><a href="https://repos.musicsian.com/RPM-GPG-KEY-musicsian">GPG Public Key</a></li> |
| 124 | </ul> |
| 125 | |
| 126 | <h2>📝 License</h2> |
| 127 | <p>MIT License - Free and open source</p> |
| 128 | |
| 129 | <footer style="margin-top: 50px; padding-top: 20px; border-top: 1px solid #e2e8f0; text-align: center; color: #718096;"> |
| 130 | <p>Fortsh demonstrates Fortran's capability for modern system programming</p> |
| 131 | </footer> |
| 132 | </body> |
| 133 | </html> |