Bash++

Bash with classes

@class Bashpp {
  @public author="Andrew S. Rightenburg"
  @public source="https://github.com/rail5/bashpp"
  @public license="GNU GPL v3"

  @public @method printInfo {
    echo "Bash++ is a superset of Bash that adds support for classes and objects."
    echo "It's meant to be a simple way to add object-orientation to Bash scripts."
    echo "Author: @this.author"
    echo "Source: @this.source"
    echo "License: @this.license"
  }
}

@Bashpp myBashpp
@myBashpp.printInfo

Documentation

License

CC-BY-SA

This documentation is licensed under the Creative Commons Attribution-ShareAlike 4.0 International license.

You are free to:

  • Share – copy and redistribute the material in any medium or format for any purpose, even commercially

  • Adapt – remix, transform, and build upon the material for any purpose, even commercially.

Under the following terms:

  • Attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.

  • ShareAlike – If you remix, transform, or build upon the material, you must distribute your contributions under the same license as the original.

I also give my personal (though I suppose legally dubious) permission to redistribute this documentation, modified or unmodified, without providing attribution. If there was a Creative Commons ShareAlike license without an attribution clause, I would’ve selected it. All that matters to me is that other people are given the same rights to your changes that you were given to the original.