Skip to content
/ cash Public

ComputerCraft Advanced Shell - A Bourne-compatible shell for CraftOS

Notifications You must be signed in to change notification settings

MCJack123/cash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

ComputerCraft Advanced Shell - A Bourne-compatible shell for CraftOS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published