Article View: alt.lang.teco
Article #7Re: Religious question -- negative arguments for S
From: Marcy Thompson
Date: Wed, 09 Sep 1992 04:23
Date: Wed, 09 Sep 1992 04:23
25 lines
1454 bytes
1454 bytes
In article <DRW.92Sep8135859@nevanlinna.mit.edu> Dale R. Worley writes:
>If one searches backwards (using a negative argument to S), is the
>point left at the beginning of the string (so that -Sstring$ when
>executed repeatedly finds successive occurrences backwards), or is the
>point left at the end of the string (as when S searches forward)?
Quoting the PDP-11 TECO User's Guide, February 1980, referring
to TECO-11 V36:
-nStext$ Identical to "nStext$" except that the search proceeds
in the reverse direction. If the string is not found, the
pointer is positioned immediately before the first character
in the buffer and an error message is printed. If the pointer
is positioned at the beginning of or within an occurrence of
the desired string, that occurrence is considered to be the
first one found. Upon successful completion, the pointer is
positioned after the last character in the string found.
I think the last sentence says it all.
Regards,
Marcy
Technical Details
Message-ID:
<BuAMvs.3JA@world.std.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!world!marcyReferences:
<DRW.92Sep8135859@nevanlinna.mit.edu>Show Full Headers
Complete Article Headers
Newsgroups: alt.lang.teco Path: arc1-ca.pugleaf.net!sparky!uunet!world!marcy From: marcy@world.std.com (Marcy Thompson) Subject: Re: Religious question -- negative arguments for S Message-ID: <BuAMvs.3JA@world.std.com> Organization: The World Public Access UNIX, Brookline, MA References: <DRW.92Sep8135859@nevanlinna.mit.edu> Date: Wed, 9 Sep 1992 04:23:51 GMT Lines: 25