e95076c776
"Dave/David" changed to "D" M academic/ed-v6/ed-v6.info M audio/aacplusenc/aacplusenc.info M audio/alsaequal/alsaequal.info M audio/audioconvert/audioconvert.info M audio/hydrogen/hydrogen.info M audio/lash/lash.info M audio/nas/nas.info M audio/portmidi/portmidi.info M audio/retrovol/retrovol.info M audio/tta/tta.info M audio/xcfa/xcfa.info M audio/xforge/xforge.info M desktop/catfish/catfish.info M desktop/dwm/dwm.info M desktop/grun/grun.info M desktop/tty-clock/tty-clock.info M desktop/wmii/wmii.info M desktop/xonclock/xonclock.info M development/pudb/pudb.info M development/shed/shed.info M graphics/fontforge/fontforge.info M libraries/libAfterImage/libAfterImage.info M libraries/libilbc/libilbc.info M libraries/libinklevel/libinklevel.info M libraries/libxlsxwriter/libxlsxwriter.info M libraries/nspluginwrapper/nspluginwrapper.info M libraries/pyPEG2/pyPEG2.info M libraries/python2-PyYAML/python2-PyYAML.info M libraries/python3-PyQtWebEngine/python3-PyQtWebEngine.info M misc/figlet/figlet.info M multimedia/AtomicParsley/AtomicParsley.info M multimedia/farsight2/farsight2.info M network/atheme/atheme.info M network/elinks/elinks.info M network/felinks/felinks.info M network/gofiche/gofiche.info M network/js185/js185.info M network/milter-greylist/milter-greylist.info M network/msmtp/msmtp.info M network/nweb/nweb.info M network/oinkmaster/oinkmaster.info M network/persepolis/persepolis.info M network/proxychains/proxychains.info M network/psi-plus/psi-plus.info M network/psi/psi.info M network/purple-facebook/purple-facebook.info M network/purple-plugin-pack/purple-plugin-pack.info M network/pyNeighborhood/pyNeighborhood.info M network/qutebrowser/qutebrowser.info M network/smstools3/smstools3.info M network/w3m/w3m.info M network/wifi-radar/wifi-radar.info M office/aiksaurus/aiksaurus.info M office/calcurse/calcurse.info M office/gcal/gcal.info M office/python-gcalcli/python-gcalcli.info M perl/perl-Algorithm-Combinatorics/perl-Algorithm-Combinatorics.info M perl/perl-Algorithm-Loops/perl-Algorithm-Loops.info M perl/perl-IO-Interface/perl-IO-Interface.info M perl/perl-IO-String/perl-IO-String.info M perl/perl-MIME-Types/perl-MIME-Types.info M perl/perl-Math-BigInt-GMP/perl-Math-BigInt-GMP.info M perl/perl-Math-GMPq/perl-Math-GMPq.info M perl/perl-Math-GMPz/perl-Math-GMPz.info M perl/perl-Math-MPC/perl-Math-MPC.info M perl/perl-Math-MPFR/perl-Math-MPFR.info M perl/perl-Math-Prime-Util-GMP/perl-Math-Prime-Util-GMP.info M perl/perl-Math-Prime-Util/perl-Math-Prime-Util.info M perl/perl-Sidef/perl-Sidef.info M perl/perl-xml-libxml/perl-xml-libxml.info M python/importlib-resources/importlib-resources.info M python/python-urwid_readline/python-urwid_readline.info M python/python2-demjson/python2-demjson.info M python/python2-elementtree/python2-elementtree.info M python/python2-morbid/python2-morbid.info M python/python2-orbited/python2-orbited.info M python/python2-stomper/python2-stomper.info M python/python2-uuid/python2-uuid.info M python/python3-attrs/python3-attrs.info M system/atool/atool.info M system/daa2iso/daa2iso.info M system/driconf/driconf.info M system/goaccess/goaccess.info M system/imwheel/imwheel.info M system/ink/ink.info M system/lomoco/lomoco.info M system/ph/ph.info M system/powernowd/powernowd.info M system/python-urwid/python-urwid.info M system/regionset/regionset.info M system/stress-ng/stress-ng.info M system/uif2iso/uif2iso.info M system/upass/upass.info M system/wine/wine.info Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org> |
||
---|---|---|
.. | ||
README | ||
ed-v6.SlackBuild | ||
ed-v6.info | ||
slack-desc |
README
Old UNIX V6 ed, lightly ported to modern systems. The old UNIX version of 'ed', the line editor. This is intended to be for academic interest more than anything and perhaps shouldn't be used for any serious editing of system files etc. You have been warned! :) The binary is named 'ed-v6' so as not to clobber gnu ed. There are some major differences between this and POSIX ed (see the notes at the end for more info.) NOTE: The linked sources are redistributed on github with no associated license. OPTIONS Build a 32 bit binary on x86_64 (Multilib needed): M32=yes Build a static binary (size is ~ 800k vs. ~ 18k for the dynamic): STATIC=yes DEVELOPER'S NOTES 1. compile with a K&R compiler (not even ansified); replacing =+ with += and using "=" for default assignment 2. assume 32-bits or better (ldiv and ldivr, increasing the sbrk to 4096) 3. use setjmp+longjmp instead of sysexit+reset 4. use lseek() instead of seek() (although still assumes 512 bytes) 5. copies the tempfilename to work on systems without writable strings 6. use SIG_IGN instead of the numeric value "1" 7. remove the goto errlab since that doesn't work in ANSI C 8. commented out getpid() in favor of a local copy 9. renamed unix() to run_unix() because some systems (at least some linux) annoyingly do a -Dunix=1 10. use sizeof(buf) instead of buf 11. renamed putchar() to putc() because gcc and clang generate errors if you create a function called putchar() with a different signature. 12. added a prototype for errfunc() because clang refuses to honor `-ansi` I've tried to keep these modifications as minimal as possible in an effort to preserve the editor that I learned unix on. `ed.c.orig` is included so you can verify how minimal my changes were. MAINTAINER'S NOTES Compilation: Added -D_XOPEN_SOURCE=500 to compile with fcntl.h in glibc-2.23. Manual page: If you are unfamiliar with ed then gnu ed has a very good info page. This is the closest I can find to the original man page: https://freebsd.org/cgi/man.cgi?query=ed&manpath=Unix+Seventh+Edition Among other things, there is no -p option, single , or ; will throw errors, no G//, and r does not support shell commands. H and h are also unsupported, so errors will lack any explanation. Using with rlwrap: This does work with rlwrap, however it repeats every command. This doesn't affect the functionality, but it can look quite confusing to have everything repeated.