-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backward compatibility #3
Comments
Support for comments is not traditional in ed, so: printf "%\n" H '# test' | ed -G should really print an error. I'll correct that. Thank you! |
By the way, macOS ed actually quits, which is incorrect. When ed reads commands from a pipe, the traditional behavior is to reports errors, but not exit. A lot of scripts depend on this behavior. macOS ed is actually an early version of my code, from before this was corrected. Unfortunately, there's no way to fix it now :( |
Thanks for explanaion. P.S. |
Yeah, the documentation needs a lot of work. In the mean time, the file doc/SUSv4.md does a little better job of covering extensions. HEAD of branch without-gnulib should now be in sync with main branch. |
Hi
macOS version o the ed must be posix compliant
printf %s\n H '# test' q | ed
?
script, line 2: unknown command
your versions works like gnu ed
printf %s\n H '# test' q | ed
no any messages
if add -G still works like gnu ed, is that how it should be? If yes, how to use your version of ed as posix compatible?
The text was updated successfully, but these errors were encountered: