From 0e5f30dc1b0c054d8646d24a3bda36399f8a1d22 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Tue, 4 Aug 2015 10:49:31 +1200 Subject: Rename pan() to paz() (like grep -Z) --- README.markdown | 2 +- bash/bashrc.d/pa.bash | 2 +- bash/bashrc.d/pan.bash | 8 -------- bash/bashrc.d/paz.bash | 8 ++++++++ 4 files changed, 10 insertions(+), 10 deletions(-) delete mode 100644 bash/bashrc.d/pan.bash create mode 100644 bash/bashrc.d/paz.bash 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/pan.bash deleted file mode 100644 index 97de3917..00000000 --- a/bash/bashrc.d/pan.bash +++ /dev/null @@ -1,8 +0,0 @@ -# Print arguments, null-delimited; you will probably want to write this into a -# file or as part of a pipeline. Compare pa(). -pan() { - if (($#)) ; then - printf '%s\0' "$@" - fi -} - diff --git a/bash/bashrc.d/paz.bash b/bash/bashrc.d/paz.bash new file mode 100644 index 00000000..99907298 --- /dev/null +++ b/bash/bashrc.d/paz.bash @@ -0,0 +1,8 @@ +# Print arguments, null-delimited; you will probably want to write this into a +# file or as part of a pipeline. Compare pa(). +paz() { + if (($#)) ; then + printf '%s\0' "$@" + fi +} + -- cgit v1.2.3