Skip to content

Latest commit

 

History

History
34 lines (29 loc) · 996 Bytes

README.md

File metadata and controls

34 lines (29 loc) · 996 Bytes

ComputerCraft Advanced Shell

A Bourne-compatible shell for ComputerCraft.

image

Features

  • Bash/sh-style command line
  • Tab completion (defaulting to file names where not supported)
  • Customizable prompts (including ANSI support)
  • Local & environment variables
  • Argument quoting
  • Multiple commands on one line with semicolons
  • Many built-in functions (including in-line Lua commands)
  • Arithmetic expansion
  • If, while, for statements
  • Function support
  • Shell scripting/shebangs
  • Background jobs
  • rc files
  • Restorable history
  • Job control, pausing
  • Partial CCKernel2 support
  • Full compatibility with CraftOS shell.lua

Missing features

  • Backtick/command substitution
  • Pipes/console redirection/here documents

TODO

  • Add test boolean operators (-a, -o)
  • Add case statement

License

This project is licensed under the MIT license. You are free to modify and redistribute cash.lua as long as the copyright notice is preserved at the top of the script.