Thanks for your work on
Your regex to split
df fails under the following conditions:
- when volume names end with a number, the number is removed (so
/Volumes/Untitled 123is reported as
/Volumes/Untitled). Note that on mac, when you format a new drive into multiple partitions, these are the default names, so this isn't an edge case.
- if a device name has whitespace followed by a number, all the fields are off-by-one. This case should be much less common than the first case.