Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Fix issue with jobs and extra whitespace on MacOS with BSD utils #145

Merged
merged 2 commits into from Aug 13, 2019
Merged

fix: Fix issue with jobs and extra whitespace on MacOS with BSD utils #145

merged 2 commits into from Aug 13, 2019

Conversation

chipbuster
Copy link
Contributor

MacOS wc has a habit of leaving nasty spaces in the output, which was
messing up our argparser.

To fix, quote the output from the jobs command, then have Rust trim out
whitespace in the jobs module before parsing.

Description

Quote argument to jobs in prompt setup, then have jobs module trim out whitespace before parsing.

Motivation and Context

Closes an issue discovered on Discord.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Screenshots (if appropriate):

image

How Has This Been Tested?

  • I have tested using MacOS
  • I have tested using Linux
  • I have tested using Windows

Checklist:

  • I have updated the documentation accordingly.
  • I have updated the tests accordingly.

chipbuster and others added 2 commits August 12, 2019 20:18
MacOS wc has a habit of leaving nasty spaces in the output, which was
messing up our argparser.

To fix, quote the output from the jobs command, then have Rust trim out
whitespace in the jobs module before parsing.
Copy link
Member

@matchai matchai left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍
Thank you for the quick fix. 😄

@matchai matchai merged commit a87c075 into starship:master Aug 13, 2019
@chipbuster chipbuster deleted the jobs_hotfix branch August 13, 2019 04:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants