From 49c575c3a5aa4a8456f7338144cd3221119851f4 Mon Sep 17 00:00:00 2001 From: Charles Gould Date: Wed, 15 Jul 2020 02:21:43 -0400 Subject: [PATCH] docs: executing bash addition --- doc_src/index.rst | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/doc_src/index.rst b/doc_src/index.rst index a0fb0d54a..6ec883a12 100644 --- a/doc_src/index.rst +++ b/doc_src/index.rst @@ -60,14 +60,19 @@ Executing Bash If fish is your default shell and you want to copy commands from the internet that are written in a different shell language, bash for example, you can proceed in the following way: -Consider, that ``bash`` is also a command. With ``man bash`` you can see that there are two ways to do this: +Consider that ``bash`` is also a command. With ``man bash`` you can see that there are two ways to do this: - ``bash`` has a switch ``-c`` to read from a string:: - > bash -c SomeBashCommand + > bash -c 'some bash command' -or ``bash`` without a switch, opens a bash shell that you can use and ``exit`` afterwards. +- ``bash`` without a switch opens a bash shell that you can use and ``exit`` afterwards:: + + > bash + $ some bash command + $ exit + > _ Default Shell