elifarley / shellbase

Some useful shell scripting functions and customizations

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

GitHub tag Github All Releases

shellbase

Some useful shell scripting functions and customizations

See Also

Tips

  • Prefer [ (or test) over [[: @Tobia, [ is a standard command. It's not so much that command that is horrible but the way Bourne-like shells parse command lines. [[...]] is a ksh construct that has issues of its own in various shells. For instance, until recently [[ $(...) ]] wouldn't work in zsh (you needed [[ -n $(...) ]]). Except in zsh, you need quotes in [[ $a = $b ]], the [[ =~ ]] has incompatible differences between implementations and even between versions for bash and several bugs in some. Personally, I prefer [. –Stéphane Chazelas - Jan 16 '17 at 15:55

About

Some useful shell scripting functions and customizations

License:MIT License


Languages

Language:Vim Script 74.2%Language:Shell 25.8%