Merge pull request #13 from hansonchar/linkfix-depth1

Fix hyperlinks of markdown pages at depth 1
This commit is contained in:
Florian Köhler 2024-01-29 19:13:01 +01:00 committed by GitHub
commit 6f3dbe3259
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,11 +3,11 @@
!!! warning "Attention" !!! warning "Attention"
Since Bash 4 has been around for quite some time now (4.3 will come soon), I consider it to be "standard". Since Bash 4 has been around for quite some time now (4.3 will come soon), I consider it to be "standard".
This page is not maintained anymore and is left here to keep your links working. This page is not maintained anymore and is left here to keep your links working.
See the [bashchanges](/scripting/bashchanges) page for new stuff introduced. See the [bashchanges](scripting/bashchanges.md) page for new stuff introduced.
Besides many bugfixes since Bash 3.2, Bash 4 will bring some interesting Besides many bugfixes since Bash 3.2, Bash 4 will bring some interesting
new features for shell users and scripters. See also new features for shell users and scripters. See also
[bashchanges](/scripting/bashchanges) for a small general overview with [bashchanges](scripting/bashchanges.md) for a small general overview with
more details. more details.
Not all of the changes and news are included here, just the biggest or Not all of the changes and news are included here, just the biggest or
@ -34,7 +34,7 @@ files that represent the filedescriptors of the started process.
In other words: It lets you start a process in background and In other words: It lets you start a process in background and
communicate with its input and output data streams. communicate with its input and output data streams.
See [The coproc keyword](/syntax/keywords/coproc) See [The coproc keyword](syntax/keywords/coproc.md)
### The new "mapfile" builtin ### The new "mapfile" builtin
@ -43,7 +43,7 @@ an array. This avoids having to fill an array yourself using a loop. It
enables you to define the range of lines to read, and optionally call a enables you to define the range of lines to read, and optionally call a
callback, for example to display a progress bar. callback, for example to display a progress bar.
See: [mapfile](/commands/builtin/mapfile) See: [mapfile](commands/builtin/mapfile.md)
### Changes to the "case" keyword ### Changes to the "case" keyword
@ -55,7 +55,7 @@ list (rather than terminate the `case` construct).
The `;;&` terminator causes the `case` construct to test the next given The `;;&` terminator causes the `case` construct to test the next given
pattern instead of terminating the whole execution. pattern instead of terminating the whole execution.
See [case](/syntax/ccmd/case) See [case](syntax/ccmd/case.md)
### Changes to the "declare" builtin ### Changes to the "declare" builtin
@ -86,7 +86,7 @@ A new option, `-i`, was introduced to be able to preload the input
buffer with some text (when Readline is used, with `-e`). The user is buffer with some text (when Readline is used, with `-e`). The user is
able to change the text, or press return to accept it. able to change the text, or press return to accept it.
See [read](/commands/builtin/read) See [read](commands/builtin/read.md)
### Changes to the "help" builtin ### Changes to the "help" builtin
@ -110,7 +110,7 @@ Besides the use of the 512 bytes blocksize everywhere in POSIX mode,
The brace expansion was tuned to provide expansion results with leading The brace expansion was tuned to provide expansion results with leading
zeros when requesting a row of numbers. zeros when requesting a row of numbers.
See [brace](/syntax/expansion/brace) See [brace](syntax/expansion/brace.md)
### Parameter Expansion ### Parameter Expansion
@ -120,7 +120,7 @@ On expansion time you can modify the syntax by adding operators to the
parameter name. parameter name.
See [Case modification on parameter See [Case modification on parameter
expansion](/syntax/pe#case_modification) expansion](syntax/pe.md#case_modification)
### Substring expansion ### Substring expansion
@ -143,7 +143,7 @@ current level.
The new shell option `dirspell` enables spelling corrections on The new shell option `dirspell` enables spelling corrections on
directory names during globbing. directory names during globbing.
See [globs](/syntax/expansion/globs) See [globs](syntax/expansion/globs.md)
## Associative Arrays ## Associative Arrays
@ -161,7 +161,7 @@ ASSOC[Hello]="second element"
ASSOC[Peter Pan]="A weird guy" ASSOC[Peter Pan]="A weird guy"
``` ```
See [arrays](/syntax/arrays) See [arrays](syntax/arrays.md)
## Redirection ## Redirection
@ -172,17 +172,17 @@ good old `>>FILE 2>&1` notation.
The parser now understands `|&` as a synonym for `2>&1 |`, which The parser now understands `|&` as a synonym for `2>&1 |`, which
redirects the standard error for a command through a pipe. redirects the standard error for a command through a pipe.
See [redirection](/syntax/redirection) See [redirection](syntax/redirection.md)
## Interesting new shell variables ## Interesting new shell variables
| Variable | Description | | Variable | Description |
| -------------------------------------------------- | ------------------------------------------------------------------------------- | | -------------------------------------------------- | ------------------------------------------------------------------------------- |
| [BASHPID](/syntax/shellvars#BASHPID) | contains the PID of the current shell (this is different than what `$$` does!) | | [BASHPID](syntax/shellvars.md#BASHPID) | contains the PID of the current shell (this is different than what `$$` does!) |
| [PROMPT_DIRTRIM](/syntax/shellvars#PROMPT_DIRTRIM) | specifies the max. level of unshortened pathname elements in the prompt | | [PROMPT_DIRTRIM](syntax/shellvars.md#PROMPT_DIRTRIM) | specifies the max. level of unshortened pathname elements in the prompt |
| [FUNCNEST](/syntax/shellvars#FUNCNEST) | control the maximum number of shell function recursions | | [FUNCNEST](syntax/shellvars.md#FUNCNEST) | control the maximum number of shell function recursions |
See [shellvars](/syntax/shellvars) See [shellvars](syntax/shellvars.md)
## Interesting new Shell Options ## Interesting new Shell Options
@ -197,7 +197,7 @@ mentioned.
| `globstar` | enables recursive globbing with `**` | | `globstar` | enables recursive globbing with `**` |
| `lastpipe` | (4.2) to execute the last command in a pipeline in the current environment | | `lastpipe` | (4.2) to execute the last command in a pipeline in the current environment |
See [shell_options](/internals/shell_options) See [shell_options](internals/shell_options.md)
## Misc ## Misc
@ -210,7 +210,7 @@ See [shell_options](/internals/shell_options)
- The output target for the `xtrace` (`set -x`/`set +x`) feature is - The output target for the `xtrace` (`set -x`/`set +x`) feature is
configurable **since Bash 4.1** (previously, it was fixed to configurable **since Bash 4.1** (previously, it was fixed to
`stderr`): a variable named `stderr`): a variable named
[BASH_XTRACEFD](/syntax/shellvars#BASH_XTRACEFD) can be set to the [BASH_XTRACEFD](syntax/shellvars.md#BASH_XTRACEFD) can be set to the
filedescriptor that should get the output filedescriptor that should get the output
- Bash 4.1 is able to log the history to syslog (only to be enabled at - Bash 4.1 is able to log the history to syslog (only to be enabled at
compile time in `config-top.h`) compile time in `config-top.h`)