Go to Github

Get free disk space info from `df -kP` to Github

FundedView inVolume names that end with a number are truncated#5

mceachencreated this issue 13 days ago

Thanks for your work on execa and df!

Your regex to split df fails under the following conditions:

  • when volume names end with a number, the number is removed (so /Volumes/Untitled 123 is 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.


Amount funded


Resolve this issue and earn $36.00

Fund this issue

Fund as

Payment method


Please sign in first to fund this issue

Sign in with

Pull requests



    URL of your pull request

    Submit your pull request

    Please sign in first to submit a pull request

    Sign in with