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