Giter Site home page Giter Site logo

moisam / layla-shell Goto Github PK

View Code? Open in Web Editor NEW
12.0 3.0 6.0 1.81 MB

A GNU/Linux shell implementation

License: GNU General Public License v3.0

CMake 0.25% Makefile 0.37% C 98.09% C++ 1.29%
shell linux gnu gnu-linux unix posix posix-compatible posix-compliant layla linux-shell

layla-shell's Introduction

About

Layla shell is a GNU/Linux shell that includes features borrowed from bash, ksh, tcsh and zsh (to a lesser extent). Layla shell aims to implement the full functionality specified in the POSIX Shell & Utilities volume. This volume describes the Shell Command Language, the general terminal interface, and the builtin utilities of compliant shells. The full POSIX standard is freely available from The Open Group's website at:

https://pubs.opengroup.org/onlinepubs/9699919799.2018edition/

Layla shell implements most of the POSIX-defined functionality. Specifically, quoting, token recognition, words expansions, I/O redirection, reponses to error conditions, the shell command language, the standard shell execution environment, signal handling, and the general and special builtin utilities are all implemented and behave in a way that is conforming to the POSIX standard. Pattern matching and pathname expansion relies on external tools, and thus might not behave exactly as specified in the POSIX standard. The shell grammar has been extended to accommodate some of the widely used non- POSIX words, such as the function and [[ keywords, and the (( )) arithmetic expansion operator. In all of these situations, if one or more of the major Unix shells disagreed in some aspect of their behaviour, we opted to follow ksh, as ksh is the "model" POSIX shell, the one upon which the Shell & Utilities volume was modeled in the first place. But ksh is not the only shell out there. This is why we included features from other shells, most notably bash, the most widely used shell nowadays.

There is still a long way to go with testing, bug-fixing and improving Layla shell, and your feedback is more than welcome in this regard. If you have a bug report, or you want to suggest adding some feature or fixing something with the shell, feel free to email me directly at my email address, the one you will find in the beginning of this file. If you have any bugfixes, patches or feature improvements you want to add to the code, feel free to send me your code.

Package dependencies

Layla shell has very few external dependencies, in order to ease the process of compiling and installing it. You only need to have the GNU C library installed, in addition to the GNU Compiler Collection (GCC) or the Clang/LLVM compiler.

If you are using any GNU/Linux distro, it would be better if you checked your distro's official repositories, as these tools are installed by default on most systems. If, by a sore chance, you needed to manually download and install them, here are the links:

How to compile and install

If you downloaded the shell as a source tarball, navigate to the directory where you downloaded the tarball:

$ cd ~/Downloads

then extract the archive and enter the extracted directory:

$ tar xvf lsh-1.0
$ cd lsh-1.0/

then run:

$ make && su -c "make install"

and that's it! Now you can run the shell by invoking:

$ lsh

Help

For more information, please read the manpage and info page in the docs/ directory.

Thanks!

layla-shell's People

Contributors

moisam avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.