• 2 Posts
  • 90 Comments
Joined 3 years ago
cake
Cake day: June 12th, 2023

help-circle





  • Per the article, there must be replacement batteries available for at least five years after the end of the product being available on the market. I don’t think it would make much sense to keep tonnes of batteries in storage for so long. Presumably battery manufacturing would therefore have to continue over time. Maybe device manufacturers will try to share battery designs across device models so they don’t need so many manufacturing lines?

    Would be great if it means that I could swap out my device’s battery after a few years and the new battery takes advantage of the improvements over that time.







  • I’m pretty sure that IFS does not apply to quoted strings since word splitting happens before the quote removal (see Shell Expansion).

    $ ( files=$(ls); IFS=$'\n' ; for x in $files; do echo $x; done )
    file a.txt
    file b.txt
    plainfile.txt
    
    $ ( files=$(ls); IFS=$'\n' ; for x in "$files"; do echo $x; done )
    file a.txt file b.txt plainfile.txt