I'm following The Unix Programming Environment exercises
and have encountered some weird issues. While going through the ed exercise, when you
just start ed, type in the exercise, then do
w poem
It saves in the filesystem as 'poem '
I tested another file, start ed, type in some words,
w raistlin
and it saves as 'raistlin '
with the same result (filename in single quotes followed by one space), though I tested on a third, and if I start off with the file name it saves as a normal file. Has anyone else seen these results? I know it's a little esoteric, I think I'm probably 1 of 7 people on the whole earth using ed this weekend. I'm using Manjaro Arch.
ednor with the nativeedon OpenBSD. Where do you see these filenames, is it in thelsoutput? What doesprintf '>>%s<<\n' *output for these files? – Kusalananda Nov 28 '20 at 08:49edbut to something that your input is passing through). – Kusalananda Nov 28 '20 at 09:07printf '%s\n' PATTERN | od -ahwherePATTERNis some pattern that matches at least of the names. – Kusalananda Nov 28 '20 at 09:24