richardphibel / rpms / dnf

Forked from rpms/dnf 2 years ago
Clone

Blame SOURCES/0012-doc-Explain-the-backslash-notation-also-near-the-example-RhBug1680482.patch

8c93e6
From 3a332e3eba6230d7da7472db654d50b8070570d8 Mon Sep 17 00:00:00 2001
8c93e6
From: Pavla Kratochvilova <pkratoch@redhat.com>
8c93e6
Date: Thu, 23 May 2019 11:07:37 +0200
8c93e6
Subject: [PATCH] [doc] Explain the backslash notation also near the example
8c93e6
 (RhBug:1680482)
8c93e6
8c93e6
https://bugzilla.redhat.com/show_bug.cgi?id=1680482
8c93e6
The backslash notation is mentioned before, but this adds an explanation
8c93e6
directly to the example where it is used.
8c93e6
---
8c93e6
 doc/command_ref.rst | 6 ++++--
8c93e6
 1 file changed, 4 insertions(+), 2 deletions(-)
8c93e6
8c93e6
diff --git a/doc/command_ref.rst b/doc/command_ref.rst
8c93e6
index ba22453055..84bad4b2b3 100644
8c93e6
--- a/doc/command_ref.rst
8c93e6
+++ b/doc/command_ref.rst
8c93e6
@@ -454,10 +454,12 @@ Alias Examples
8c93e6
     Lists all defined aliases.
8c93e6
 
8c93e6
 ``dnf alias add rm=remove``
8c93e6
-    Adds new alias command called "rm" which does the same thing as the command "remove".
8c93e6
+    Adds a new command alias called ``rm`` which works the same as the ``remove`` command.
8c93e6
 
8c93e6
 ``dnf alias add update="\update --skip-broken --disableexcludes=all --obsoletes"``
8c93e6
-    Adds new alias command called "update" which does the same thing as the command "update", but with options ``--skip-broken --disableexcludes=all --obsoletes``.
8c93e6
+    Adds a new command alias called ``update`` which works the same as the ``update`` command,
8c93e6
+    with additional options. Note that the original ``update`` command is prefixed with a ``\``
8c93e6
+    to prevent an infinite loop in alias processing.
8c93e6
 
8c93e6
 .. _alias_processing_examples-label:
8c93e6