pure-bash-bible
pure-bash-bible copied to clipboard
๐ A collection of pure bash alternatives to external processes.
The current logic fails if a function is exported, i.e., `declare -fx funcname`
What's **the purpose** of these instructions ``` : "${chapter[$i]/$'\n'*}"; : "${_/\# }"; : "${_,,}" ```in build.sh? I run `bash build.sh` without them in **ubuntu18.04.2 TLS x86_64**, it get the same...
Would be neat to have a file that could be included from a `.bashrc` (e.g. `source ~/.bashrc-bash-bible`). This could also be useful to reproducibility with `test.sh`
Many thanks for this great bible. I have translated it in Turkish. I am not sure about how you manage and list translations of this document, so I created this...
This is very likely **not** perfect but it seems to pass any RGB color I throw at it. ```sh # rgb2hsl - usage: rgb2hsl r g b rgb_to_hsl() { local...
Include `prepend` function as described [here](https://gist.github.com/helpermethod/ce1be4205960f074f6f5f2a77669f31f). ```sh prepend() { printf '%s%s' "$1" "$(< "$2")" > "$2" } ```
First of all thanks for this amazing repository, it's hard to come by a lot of useful tips like this. I would like to contribute with some of my own...
I'm trying to PR a working curl / wget (using /dev/tcp) ``` set -ex function __curl() { read proto server path
When I saw your repo I immediately thought of this project: https://github.com/bashup/realpaths This is up to you whether to include it in the README, of course. Tagging @pjeby, the author...