bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ed] -G /--traditional mode breaks %l running GNU ed on latest o


From: Andrew L. Moore
Subject: Re: [Bug-ed] -G /--traditional mode breaks %l running GNU ed on latest osx mavericks
Date: Fri, 24 Oct 2014 02:00:04 -0400

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]