mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-07 23:41:15 -03:00
docs: Link to the rest of the docs in fish_for_bash_users
This commit is contained in:
@@ -69,6 +69,8 @@ Specific elements of a list can be selected::
|
||||
|
||||
echo $list[5..7]
|
||||
|
||||
See :ref:`Shell variables <variables>` for more.
|
||||
|
||||
.. [#] zsh also does not perform word splitting by default (the SH_WORD_SPLIT option controls this)
|
||||
|
||||
Wildcards (globs)
|
||||
@@ -85,6 +87,8 @@ will not match any files.
|
||||
|
||||
There are no options to control globbing so it always behaves like that.
|
||||
|
||||
See :ref:`Wildcards <wildcard>` for more.
|
||||
|
||||
Quoting
|
||||
-------
|
||||
|
||||
@@ -96,6 +100,8 @@ There is no ``$''``, instead the sequences that would transform are transformed
|
||||
a
|
||||
b
|
||||
|
||||
See :ref:`Quotes <quotes>` for more.
|
||||
|
||||
String manipulation
|
||||
-------------------
|
||||
|
||||
@@ -302,7 +308,7 @@ The pipe will simply be run in the same process, so ``while read`` loops can set
|
||||
echo $VAR # will print VAL
|
||||
jobs # will show "baz"
|
||||
|
||||
Subshells are also frequently confused with :ref:`command substitutions <bash-command-substitutions>`, which bash writes as ```command``` or ``$(command)`` and fish writes as ``(command)``. Bash also *uses* subshells to implement them.
|
||||
Subshells are also frequently confused with :ref:`command substitutions <bash-command-substitutions>`, which bash writes as ```command``` or ``$(command)`` and fish writes as ``$(command)`` or ``(command)``. Bash also *uses* subshells to implement them.
|
||||
|
||||
The isolation can usually be achieved by just scoping variables (with ``set -l``), but if you really do need to run your code in a new shell environment you can always use ``fish -c 'your code here'`` to do so explicitly.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user