Re: Thunderbird rust sed
| Newsgroups | gmane.linux.lfs.beyond.devel |
|---|---|
| Message-ID | <[email protected]> |
Am 14.08.25 um 02:00 schrieb Joe Locash ([email protected] via blfs-dev Mailing List): > I'm not sure why the sed for the rust fix needs to convert CRLF's but if > you want to keep the same consistency in the file, this sed is easier: > sed -i '1i#![warn(dangerous_implicit_autorefs)]\r' > third_party/rust/allocator-api2/src/stable/vec/mod.rs > and you can loose the footnote at the same time ;) I like your approach. But I don't think that it would obviate the footnote (which I appreciate) as the "\r" at the end still needs to be explained. With "i.orig" I'd also give the less sed-gifted but curious user a chance to understand what's been done. So my suggestion for a simpler and more user-friendly sed would be: sed -e '1i #![warn(dangerous_implicit_autorefs)]\r'\ -i.orig third_party/rust/allocator-api2/src/stable/vec/mod.rs Rainer -- http://lists.linuxfromscratch.org/sympa/info/blfs-dev Unsubscribe: See the above information page