Posix2 conformance (was Re: coreutils - tail -f broken ???)

Ryan.Oliver at pha.com.au Ryan.Oliver at pha.com.au
Thu May 8 08:47:46 PDT 2003


> And just a pet peave, but you can replace all those -e's with a single
> sed command, using ;'s:
<SNIP>
laziness ;-)
yyp

> Or better yet, just make the whole file a .sed script, starting with
> #!/bin/sed -f, and executable.  That way someone could use other usage
> than you provide, like take input from stdin.

done

Added support in for translating tail +1c -1l properly

Attached .sed is the sed script
the .sh has 2 functions in it, ones exactly the same as the sed script
and the other one fixes recursively from your working directory creating a
diff file as you go
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix2fix.sh
Type: application/octet-stream
Size: 1799 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20030509/84bbece4/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: posix2fix.sed
Type: application/octet-stream
Size: 588 bytes
Desc: not available
URL: <http://lists.linuxfromscratch.org/pipermail/lfs-dev/attachments/20030509/84bbece4/attachment-0001.obj>


More information about the lfs-dev mailing list