Next: Init System, Previous: Package Manager, Up: Top
Thanks for taking your time to contribute! To maintain stylistic behaviour throughout the repositories, one must adhere to these guidelines. Exceptions and changes may occur with good reasoning.
These apply to each and every file on the repositories.
# Good way of commenting. your code goes here your code goes here # Avoid this way of commenting.
Shell is central to Carbs Linux projects. Most of the tools and packages are written in POSIX sh.
shellcheck
and if you are new to
POSIX sh, use checkbashisms
. [SH0030]
gawk
and perl
. [SH0041]
$(basename $file)
, use ${file##*}
. [SH0042]
$(dirname $file)
, use ${file%/*}
. [SH0043]
# This is the same thing as basename /path/to/test.asc .asc
$ file=/path/to/test.asc file=${file##*/} file=${file%.asc}
$ echo $file
test
Next: Init System, Previous: Package Manager, Up: Top