aboutsummaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-03-24 09:11:27 +1300
committerTom Ryder <tom@sanctum.geek.nz>2017-03-24 09:11:27 +1300
commit9d6199c5dc0911a5595e5f225ad909845ed8cc17 (patch)
treeba015cf824cbefeab8c2950700ed99669b3d0859 /man
parentUse builtin macros for filenames (diff)
downloaddotfiles-9d6199c5dc0911a5595e5f225ad909845ed8cc17.tar.gz
dotfiles-9d6199c5dc0911a5595e5f225ad909845ed8cc17.zip
Change shb(1) to read stdin by default
This is clearer.
Diffstat (limited to 'man')
-rw-r--r--man/man1/shb.1df16
1 files changed, 6 insertions, 10 deletions
diff --git a/man/man1/shb.1df b/man/man1/shb.1df
index 1970dbde..a1cb884a 100644
--- a/man/man1/shb.1df
+++ b/man/man1/shb.1df
@@ -4,20 +4,16 @@
\- insert a shebang line above a file
.SH SYNOPSIS
.B shb
-script bash
+bash < foo.bash > foo
.br
+cat *.sed |
.B shb
-script sed -f
-.br
-command |
-.B shb
-- awk -f
+sed -f > sedbatch
.SH DESCRIPTION
.B shb
-searches the system paths to find a suitable program with the name given in the
-second argument, forms a "shebang" line from it and any arguments beyond the
-second, and then emits the contents of the first argument ('-' can be used for
-stdin).
+searches the system paths to find a suitable program with the name given in its
+first argument, forms a "shebang" line from it and any remaining arguments, and
+then emits the contents of stdin.
.P
This is intended as a minimal way to make portable shebang lines for Makefiles
or other building or installation frameworks, handling subtleties like sed(1)