GUN Sed Bug

王森 <[email protected]>
Newsgroups gmane.comp.gnu.utils.bugs
Message-ID <[email protected]>
Hi
### tmp.txt ###
[root@localhost learn_sed]# cat tmp.txt
hello world
I'am in china
[root@localhost learn_sed]#
[root@localhost learn_sed]# sed --version
GNU sed version 4.2.1
[root@localhost learn_sed]# which sed
/bin/sed
[root@localhost learn_sed]# /bin/sed 's/$/ End/' tmp.txt
hello world End
I'am in china End
[root@localhost learn_sed]#
[root@localhost learn_sed]#
[root@localhost learn_sed]# /bin/sed "s/\'/ End/" tmp.txt
hello world End
I'am in china End
[root@localhost learn_sed]#
### My Question
I want to know the reason.  \' be equal to Line End ?
If possible , tell me why ?   thanks
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.