News for hackers. Stuff that matters.
Re:Show HN: Clamshell- an experimental Python based shell by kwertyops on Saturday January 28, 2023 @10:05AM (#34558081)

  ~/me $_ x = files('Music')
  ~/me $_ for item in x:
        >     if 'Rick Astley' not in x['name']:
        >         delete(x['path'])
Shouldn’t that be:

  ~/me $_ x = files('Music')
  ~/me $_ for item in x:
        >     if 'Rick Astley' not in item['name']:
        >         delete(item['path'])

?
Re:Show HN: Clamshell- an experimental Python based shell by totetsu on Saturday January 28, 2023 @11:35AM (#34558981)
on purpose to stop unwary copy pasting?
Re:Show HN: Clamshell- an experimental Python based shell by benrutter on Saturday January 28, 2023 @12:11PM (#34559323)
Haha, thanks! That's such an immensely charitable interpretation of my messy typo- I'll update the readme so people can copy paste there music collection into non-existence if they feel like it. (Luckily it'll just go to the recycle bin so those Bananarama mp3s are still recoverable)