On Sun, Nov 23, 2014 at 4:43 PM, Jason McIntyre <j...@kerhand.co.uk> wrote: > On Sun, Nov 23, 2014 at 10:46:23AM +0100, Ezequiel Garz?n wrote: >> Hello, everyone. I've noticed that in OpenBSD ed(1) doesn't mark the >> end of each line with a '$' when the list command 'l' is invoked. Is >> this a deliberate deviation from the POSIX standard? Is there any >> rationale for it? It looks like this should help "print the addressed >> lines unambiguously" when dealing with trailing spaces, no? >> >> Thanks and cheers, >> >> Ezequiel >> > > i don't know, but i'd like to. > > there is nothing in bin/ed/POSIX concerning `l', but commit history to > that file is not exactly inspiring. > > there is nothing in the posix page for ed documenting whether this is > something recent. it's there in 2008, and in the 2013 update. > > it would be good to know how other bsds behave, and whether the > behaviour is considered desireable. then we'd know if behaviour should > be changed, or whether a doc update is enough. > > if i don;t get any concrete feedback on that, i'll update the doc. > > anyone want to chip in? > > jmc >
Hi Jason, commenting out CFLAGS+=-DBACKWARDS and recompiling will show the $ at the end of long lines. bin/ed/README says: BACKWARDS - for backwards compatibility This hasn't changed since 1995. Anyone know what ed is supposed to be backwards compatible with?