Steve Terpe wrote:
]] You may wonder why I am using GNU ed on OSX instead of the BSD version and 
the answer is simply that GNU ed supports the '#' comment command syntax and 
BSD ed does not.

The comment command was added just prior to the release of the GNU port of 
ed(1), so it should be in BSD ed(1) as well.  If not that was a mistake that 
should be corrected. If POSIX compliance is a concern, be aware that the 
comment command is not in the POSIX spec.  The GNU ed and BSD ed behavior 
should otherwise be identical.

Antonio Diaz wrote:
] I am open to any information/suggestion about how traditional mode should 
behave, including if it should be kept or removed.

The GNU ed(1) flag -G (—traditional)  enforces POSIX syntax - the same as if 
the environment variable POSIXLY_CORRECT were set.  The intent is to allow GNU 
ed(1) to run POSIXLY_CORRECT scripts.  The POSIX cases are mostly syntax 
restrictions.


_______________________________________________
bug-ed mailing list
bug-ed@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-ed

Reply via email to