Bug 247948 - rc.d: Remove extra space in messages
Summary: rc.d: Remove extra space in messages
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2020-07-13 11:55 UTC by Jose Luis Duran
Modified: 2020-07-13 14:19 UTC (History)
1 user (show)

See Also:


Attachments
Remove extra space (803 bytes, patch)
2020-07-13 11:55 UTC, Jose Luis Duran
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jose Luis Duran freebsd_committer freebsd_triage 2020-07-13 11:55:40 UTC
Created attachment 216417 [details]
Remove extra space

The space between words is already being echoed by the space between quoted strings:

    % echo 'foo' 'bar'
    foo bar

    % echo 'foo' ' baz'
    foo  baz

Found in `ipfw` and `mountlate` messages.
Comment 1 commit-hook freebsd_committer freebsd_triage 2020-07-13 13:45:26 UTC
A commit references this bug:

Author: allanjude
Date: Mon Jul 13 13:44:55 UTC 2020
New revision: 363142
URL: https://svnweb.freebsd.org/changeset/base/363142

Log:
  Remove excess spaces from rc.d scripts

  The space between words is already being echoed by the space between quoted strings:

      % echo 'foo' 'bar'
      foo bar

      % echo 'foo' ' baz'
      foo  baz

  Found in `ipfw` and `mountlate` messages.

  PR:		247948
  Submitted by:	Jose Luis Duran <jlduran@gmail.com>
  MFC after:	2 weeks
  Sponsored by:	Klara Inc.

Changes:
  head/libexec/rc/rc.d/ipfw
  head/libexec/rc/rc.d/mountlate