From de2700c9b65c7dd7d2c87e0c27dc65811c1d5730 Mon Sep 17 00:00:00 2001 From: Yurii Kolesnykov Date: Mon, 17 Sep 2018 01:18:31 +0300 Subject: [PATCH] add quotes to brew --cache in help for cleanup command --- Library/Homebrew/cmd/cleanup.rb | 2 +- docs/Manpage.md | 2 +- manpages/brew.1 | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Library/Homebrew/cmd/cleanup.rb b/Library/Homebrew/cmd/cleanup.rb index 0cf4478937cd6..b53bb61130441 100644 --- a/Library/Homebrew/cmd/cleanup.rb +++ b/Library/Homebrew/cmd/cleanup.rb @@ -10,7 +10,7 @@ #: #: If `-s` is passed, scrub the cache, including downloads for even the latest #: versions. Note downloads for any installed formula or cask will still not -#: be deleted. If you want to delete those too: `rm -rf $(brew --cache)` +#: be deleted. If you want to delete those too: `rm -rf "$(brew --cache)"` require "cleanup" require "cli_parser" diff --git a/docs/Manpage.md b/docs/Manpage.md index 163b2b8151b6d..79e01dfbe1b2b 100644 --- a/docs/Manpage.md +++ b/docs/Manpage.md @@ -62,7 +62,7 @@ With `--verbose` or `-v`, many commands print extra debugging information. Note If `-s` is passed, scrub the cache, including downloads for even the latest versions. Note downloads for any installed formula or cask will still not - be deleted. If you want to delete those too: `rm -rf $(brew --cache)` + be deleted. If you want to delete those too: `rm -rf "$(brew --cache)"` * `command` `cmd`: Display the path to the file which is used when invoking `brew` `cmd`. diff --git a/manpages/brew.1 b/manpages/brew.1 index 88514c779ea83..67eb139faf364 100644 --- a/manpages/brew.1 +++ b/manpages/brew.1 @@ -65,7 +65,7 @@ If \fB\-\-prune=\fR\fIdays\fR is specified, remove all cache files older than \f If \fB\-\-dry\-run\fR or \fB\-n\fR is passed, show what would be removed, but do not actually remove anything\. . .IP -If \fB\-s\fR is passed, scrub the cache, including downloads for even the latest versions\. Note downloads for any installed formula or cask will still not be deleted\. If you want to delete those too: \fBrm \-rf $(brew \-\-cache)\fR +If \fB\-s\fR is passed, scrub the cache, including downloads for even the latest versions\. Note downloads for any installed formula or cask will still not be deleted\. If you want to delete those too: \fBrm \-rf "$(brew \-\-cache)"\fR . .IP "\(bu" 4 \fBcommand\fR \fIcmd\fR: Display the path to the file which is used when invoking \fBbrew\fR \fIcmd\fR\.