aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc.d/path.bash
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2015-12-18 17:22:46 +1300
committerTom Ryder <tom@sanctum.geek.nz>2015-12-18 17:22:46 +1300
commit435e83853bf4ebec58dff41b328e832cb23ded3c (patch)
treed5177d54f2a87e1eef9d1517069fa6c6b4f6b10c /bash/bashrc.d/path.bash
parentFlatten _path completion spec a bit (diff)
downloaddotfiles-435e83853bf4ebec58dff41b328e832cb23ded3c.tar.gz
dotfiles-435e83853bf4ebec58dff41b328e832cb23ded3c.zip
Avoid calling cat(1) by using builtins
Diffstat (limited to 'bash/bashrc.d/path.bash')
-rw-r--r--bash/bashrc.d/path.bash4
1 files changed, 3 insertions, 1 deletions
diff --git a/bash/bashrc.d/path.bash b/bash/bashrc.d/path.bash
index d2bf6d37..39d9e453 100644
--- a/bash/bashrc.d/path.bash
+++ b/bash/bashrc.d/path.bash
@@ -15,7 +15,9 @@ path() {
# Print help output (also done if command not found)
help|h|-h|--help|-\?)
- cat <<EOF
+ while IFS= read -r line ; do
+ printf '%s\n' "$line"
+ done <<EOF
$FUNCNAME: Manage contents of PATH variable
USAGE: