hello, 1. > kalle wrote: >> -\M, where M is a number: I don't understand the message because of the >> term "backreference expression". If I give it in the REPLACEMENT it >> gives me 'M'. > > Did you define the corresponding subexpression in RE?
No, I didn't. But I also didn't understand the term "backreference expression". It should be explained in that part of the info-ed file. 2. >> Instead, the order s\PATTERN takes away PATTERN, which is not mentioned >> in the info ed-File. >> -the '%' REPLACEMENT doesn't seem to work for me too. >> >> my ed-version is 1.9-2 > > These bugs have been fixed in the latest version of GNU ed (1.14.2). You > can download it from http://ftpmirror.gnu.org/ed/ed-1.14.2.tar.lz here I see following problems: i)I didn't understand, that s\PATTERN is a special case of s/RE/REPLACEMENT/, namely by not writing /REPLACEMENT/, so that /RE/ is deleted. This as other special cases should be explained in the explanation of `s’. ii)I don't know why I failed on this, but now % works fine for me, without having updated my version. iii)I don't understand why you say,these bugs had been fixed in the latest version, as it seems to me that I messed it up and not the program. iv) as as newbie it is not easy at all for me handling with a tar.lz-file. I had to research,what the .lz-suffix means,which program to install, how to use tar and so on. Furthermore, I still don't know how to deal with binary programs when not installing them through packaging software. Is it really necessary to point out the newest version? To .tar.lz the files? 3.Since I had a lot of difficulties of understanding the explanations around the `s‘-command, I tried to figure it out in practice. This was sometimes quite confusing, because I also wasn't experienced using ed. Therefore, I think it is quite important to document this command well, especially: i)in the explanation of the `g' in s/RE/REPLACEMENT/g, it is said that "It is an error, of no […]" Why? If N is big enough? ii)to make a statement to the relation between solely `/RE/' as to jump to the line and /RE/ in `s/RE/REPLACEMENT/': what does the term search mean? I had to figure it out by experimenting. That for I also had problems understanding the `r' in `sr'. I think that for "to be used instead of the that of the last substitution" "Regular Expression" should be inserted between "the" and "that".That `//' in also matching the `/RE/' in an `s'-command. greetings, kalle _______________________________________________ bug-ed mailing list [email protected] https://lists.gnu.org/mailman/listinfo/bug-ed
