Antonio,

Please also tell me the output you expect from this session and the
semantics you associate with it (spoiler below:)

    $ ed -p ">" "*"
    >!ls
    >!cp % %.txt
    >!rm %
    >!ls
    >Q

SPOILER SPOILER SPOILER SPOILER SPOILER SPOILER SPOILER SPOILER SPOILER

So my interpretation of this session is:
- I list all files
- I copy the file called “*” (a totally normal name—we live in a free
  world where anything goes into the file name!) to “*.txt”.
- I remove the “*” file but not the .txt version
- I list all files, and I expect to see “*.txt” but not “*” in the
  listing

This feels much more useful and pathname-persisting than a scenario
where it deletes everything in the current directory just because the
remembered pathname turns out to contain a star.

Thanks,
-- 
Artyom Bologov
https://aartaka.me

Reply via email to