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

do not pass -u to fmt -- unsupported on osx #88

Merged
merged 1 commit into from Apr 18, 2018

Conversation

jhoblitt
Copy link
Member

The -u flag results in this error message on osx:

fmt: illegal option -- u
usage:   fmt [-cmps] [-d chars] [-l num] [-t num]
             [-w width | -width | goal [maximum]] [file ...]
Options: -c     center each line instead of formatting
         -d <chars> double-space after <chars> at line end
         -l <n> turn each <n> spaces at start of line into a tab
         -m     try to make sure mail header lines stay separate
         -n     format lines beginning with a dot
         -p     allow indented paragraphs
         -s     coalesce whitespace inside lines
         -t <n> have tabs every <n> columns
         -w <n> set maximum width to <n>
         goal   set target width to goal

The -u flag results in this error message on osx:

    fmt: illegal option -- u
    usage:   fmt [-cmps] [-d chars] [-l num] [-t num]
                 [-w width | -width | goal [maximum]] [file ...]
    Options: -c     center each line instead of formatting
             -d <chars> double-space after <chars> at line end
             -l <n> turn each <n> spaces at start of line into a tab
             -m     try to make sure mail header lines stay separate
             -n     format lines beginning with a dot
             -p     allow indented paragraphs
             -s     coalesce whitespace inside lines
             -t <n> have tabs every <n> columns
             -w <n> set maximum width to <n>
             goal   set target width to goal
@jhoblitt jhoblitt requested review from timj and ktlim April 18, 2018 14:22
Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

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

I don't actually know what -u does... But this seems fine.

@jhoblitt
Copy link
Member Author

It normalizes white-space as in one space between words and two spaces after a period. I thought it was supported on osx for some reason. We can live without it.

@jhoblitt jhoblitt merged commit e3302f7 into master Apr 18, 2018
@ktlim ktlim deleted the tickets/DM-14131-fmt-osx-failure branch August 25, 2018 06:15
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