mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
docs: executing bash addition
This commit is contained in:
parent
e5ac2fa879
commit
49c575c3a5
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue