Bug 1087924 - file: -L,-h options in usage output missing newline
file: -L,-h options in usage output missing newline
Status: RESOLVED FIXED
Classification: openSUSE
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Basesystem
Current
x86-64 Other
: P5 - None : Enhancement (vote)
: ---
Assigned To: Dr. Werner Fink
E-mail List
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-03 15:43 UTC by Bernhard Voelker
Modified: 2018-04-06 08:07 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bernhard Voelker 2018-04-03 15:43:12 UTC
The text in 'file --help' output lacks newline characters after both
the -L and the -h options:

  $ rpm -q file
  file-5.32-5.1.x86_64

  $ file --help
  ...
    -k, --keep-going           don't stop at the first match
    -l, --list                 list magic strength
    -L, --dereference          follow symlinks  -h, --no-dereference (default)       don't follow symlinks  -n, --no-buffer            do not buffer output
    -N, --no-pad               do not pad output
    -0, --print0               terminate filenames with ASCII NUL
  ...

Instead, it should read (maybe with even better formatting):

  $ file --help
  ...
    -k, --keep-going           don't stop at the first match
    -l, --list                 list magic strength
    -L, --dereference          follow symlinks
    -h, --no-dereference (default)       don't follow symlinks
    -n, --no-buffer            do not buffer output
    -N, --no-pad               do not pad output
    -0, --print0               terminate filenames with ASCII NUL
  ...
Comment 1 Dr. Werner Fink 2018-04-06 06:55:22 UTC
thansk for spotting ... this is indeed a SUSE patch wich breaks or better do not break here ... to indicate that is POSIXLY_CORRECT set the file command follows symbolic links by default ...

   POSIXLY_CORRECT=1 file --help
   (unset  POSIXLY_CORRECT; file --help)
Comment 2 Swamp Workflow Management 2018-04-06 07:50:05 UTC
This is an autogenerated message for OBS integration:
This bug (1087924) was mentioned in
https://build.opensuse.org/request/show/593898 Factory / file
Comment 3 Dr. Werner Fink 2018-04-06 08:07:15 UTC
fixed