diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2015-08-04 10:49:31 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2015-08-04 10:49:31 +1200 |
commit | 0e5f30dc1b0c054d8646d24a3bda36399f8a1d22 (patch) | |
tree | 33ae3fc0e479f50f4991e9a71a043060c901d218 | |
parent | Move database option to [mysql] section (diff) | |
download | dotfiles-0e5f30dc1b0c054d8646d24a3bda36399f8a1d22.tar.gz dotfiles-0e5f30dc1b0c054d8646d24a3bda36399f8a1d22.zip |
Rename pan() to paz() (like grep -Z)
-rw-r--r-- | README.markdown | 2 | ||||
-rw-r--r-- | bash/bashrc.d/pa.bash | 2 | ||||
-rw-r--r-- | bash/bashrc.d/paz.bash (renamed from bash/bashrc.d/pan.bash) | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/README.markdown b/README.markdown index 0ec67b44..497d5fe5 100644 --- a/README.markdown +++ b/README.markdown @@ -184,7 +184,7 @@ There are a few other little tricks in `bash/bashrc.d`, including: * `mkcp` — Create a directory and copy arguments into it * `mkmv` — Create a directory and move arguments into it * `pa` — Print given arguments, one per line -* `pan` — Print given arguments separated by NULL chars +* `paz` — Print given arguments separated by NULL chars * `path` — Manage the contents of `PATH` conveniently * `pd` — Change to the argument’s parent directory * `scr` — Create a temporary directory and change into it diff --git a/bash/bashrc.d/pa.bash b/bash/bashrc.d/pa.bash index 3a7b8398..a2529968 100644 --- a/bash/bashrc.d/pa.bash +++ b/bash/bashrc.d/pa.bash @@ -1,4 +1,4 @@ -# Print arguments, one per line. Compare pan(). +# Print arguments, one per line. Compare paz(). pa() { if (($#)) ; then printf '%s\n' "$@" diff --git a/bash/bashrc.d/pan.bash b/bash/bashrc.d/paz.bash index 97de3917..99907298 100644 --- a/bash/bashrc.d/pan.bash +++ b/bash/bashrc.d/paz.bash @@ -1,6 +1,6 @@ # Print arguments, null-delimited; you will probably want to write this into a # file or as part of a pipeline. Compare pa(). -pan() { +paz() { if (($#)) ; then printf '%s\0' "$@" fi |