2018-03-12
___S_a_m__q_u_e_s_t_i_o_n_s__________________________________________
After reading the sam tutorial again to improve my sam foo, I opened
up deadpixie's sam[0] clone's issue page on github.
I got stunned by a request[1] for the beginning of line address
command, which I have never used and always misread as being the same
as ^. See the cheatsheet[2] for a comparison.
So I sat down and after a short while came up with a small patch[3]
that implements this. But what should the end of line address look
like? In the cheatsheet it is the same as the end of file address '$'
but how does sam distinguish between them?
I could not find a trace about this in the deadpixie source so I have
cloned the plan9port repo[4] to be sure. Nothing. Then I checked the
9front[5] sources, also nil.
I am scratching my head now. Where did this command come from? I am
still searching for it. The reporting user has gone silent, so I'll
know tomorrow maybe.
If you have got any hints please let me know!
___References________________________________________________________
[0]:
https://github.com/deadpixi/sam
[1]:
https://github.com/deadpixi/sam/issues/69
[2]:
http://sam.cat-v.org/cheatsheet/
[3]:
https://github.com/ckeen/sam/commit/697a5f25e51a4077ebc2078d8b5fee038016e6b1
[4]:
https://github.com/9fans/plan9port
[5]:
https://code.9front.org/hg/plan9front/file/d42f25e223fc/sys/src/cmd/sam