annotate scripts/head_-c_-1 @ 357:2f379a0b6461
draft
Revert "Added git path (Atiti)"
This reverts commit c964d8bbde489b54db02be6e399d9ab364265765.
Setting configure to force bash is inappropriate. configure can use any
shell with korn or compatible features, and on most systems /bin/sh points
to such a shell. Ubutnu breaks compatibility by changing /bin/sh to dash.
The solution is to fix Ubuntu, not to break the configure script.
author
Nick <nick@somerandomnick.ano>
date
Wed, 12 Jan 2011 07:20:11 +0000 (2011-01-12)
parents
5a1eacb9dded
children
rev
line source
134
+ − 1 #!/bin/sh
+ − 2
+ − 3 #This script is necessary because head from GNU textutils 2.0 (on Borg's
+ − 4 # machine) doesn't implement negative arguments for the -n and -c options.
+ − 5
+ − 6 #FIXME: The emulation here fails if there's a newline at the end:
+ − 7 #sed '$s/.$//'
+ − 8
+ − 9 rev | tac | dd bs = 1 skip = 1 status = noxfer 2 >/dev/null | tac | rev