To demonstrate, try to copy text from one file to another:

  $ echo copy me > file1.txt
  $ seq 5 > file2.txt
  $ ed file1.txt
  8
  y
  x
  ,p
  copy me
  copy me
  E file2.txt
  10
  x
  ?
  h
  Nothing to put

According to the man-/info-page, 

  '(.,.)y'
  Copies (yanks) the addressed lines to the cut buffer. The cut buffer
  is overwritten by subsequent 'c', 'd', 'j', 's', or 'y' commands. The
  current address is unchanged.

However, none of those commands were issued between the 'y'ank and the
second 'x' command that complains there is "Nothing to put", only the
"E" (same happens if you don't modify file1.txt and use `e file2.txt`; I
just pasted in file1.txt to show that 'x' works as expected there).

-tkc
-- 






Reply via email to