fsfe / reuse-docs

REUSE recommendations, tutorials, FAQ and specification
https://reuse.software
19 stars 20 forks source link

Use >> to concatenate text to file #112

Closed hesa closed 2 years ago

hesa commented 2 years ago

The second command wipes out the text from the first. Using ">>" concatenates the text instead.

mxmehl commented 2 years ago

Oh well, that's just example code which probably will never be used anywhere (hopefully), but thanks for your attention to detail! :)

silverhook commented 2 years ago

There’s also sponge (part of MoreUtils; blog post about it), but >> is probably enough in this case.

Great catch @hesa ! :+1:

hesa commented 2 years ago

Great catch @hesa ! 👍 @silverhook, you making fun of me? ;)

silverhook commented 2 years ago

@hesa , not at all. It may be rookie mistake, but solutions to rookie mistakes are not rookie. And it could cause issues if someone simply copy-pasted from the example.