[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sed blindly eats everything beyond w command filename
From: |
tt |
Subject: |
Re: sed blindly eats everything beyond w command filename |
Date: |
11 Mar 2001 15:35:16 +0200 |
address@hidden (Dan Jacobson) writes:
> `w FILENAME'
...
> Please add:
> FILENAME is terminated ONLY by a newline. ALL other characters
> are assumed part of FILENAME.
Just curious, do you find somewhere in the documentation
that _any_ command may be terminated by anything but newline?
While most (?) sed implementations allow terminating most
commands with semicolon, that's not allowed by POSIX.2 nor
any even semi-official document I know of.
Browsing through Gnu sed documentation I don't find anything
about it either.
So if you go by the documentation you will never use semicolons and
the issue will not arise.
On the other hand using semicolon is quite common and it would
probably be a good idea to add a paragraph about them somewhere
in the documentation, as well as a special note in r and w
commands as you suggested.
--
Tapani Tarvainen