Skip to content

Commit 5746562

Browse files
authored
Merge pull request #14 from hansonchar/linkfix-depth2
Fix hyperlinks of markdown pages at depth 2
2 parents 6f3dbe3 + e966036 commit 5746562

39 files changed

+358
-358
lines changed

docs/commands/classictest.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ fi
6161
As you definitely noted, the filename contains spaces.
6262
Since we call a normal ordinary command (`test` or `[`) the shell will word-split the expansion of the variable `mymusic`:
6363
You need to quote it when you don't want the `test`-command to complain about too many arguments for this test-type!
64-
If you didn't understand it, please read the [article about words\...](/syntax/words).
64+
If you didn't understand it, please read the [article about words\...](../syntax/words.md).
6565

6666
Please also note that the file-tests want **one filename** to test.
6767
Don't give a glob (filename-wildcards) as it can expand to many filenames => **too many arguments!**
@@ -138,7 +138,7 @@ Since Bash 4.1, all tests related to permissions respect ACLs, if the underlying
138138
| <TEST1\> **-o** <TEST2\> | True, if either \<TEST1\> **or** <TEST2\> is true (OR). |
139139
| **!** <TEST\> | True, if <TEST\> is **false** (NOT). |
140140
| **(** <TEST\> **)** | Group a test (for precedence). **Attention:** In normal shell-usage, the `(` and `)` must be escaped; use `\(` and `\)`! |
141-
| **-o** <OPTION_NAME\> | True, if the [shell option](/internals/shell_options) <OPTION_NAME\> is set. |
141+
| **-o** <OPTION_NAME\> | True, if the [shell option](../internals/shell_options.md) <OPTION_NAME\> is set. |
142142
| **-v** <VARIABLENAME\> | True if the variable <VARIABLENAME\> has been set. Use `var[n]` for array elements. |
143143
| **-R** <VARIABLENAME\> | True if the variable <VARIABLENAME\> has been set and is a nameref variable (since 4.3-alpha) |
144144

@@ -503,18 +503,18 @@ Some code snipplets follow, different ways of shell reaction is used.
503503
- **check if a variable is defined/non-NULL**
504504
- `test "$MYVAR"`
505505
- `[ "$MYVAR" ]`
506-
- **Note:** There are possibilities to make a difference if a variable is *undefined* or *NULL* - see [Parameter Expansion - Using an alternate value](/syntax/pe#use_an_alternate_value)
506+
- **Note:** There are possibilities to make a difference if a variable is *undefined* or *NULL* - see [Parameter Expansion - Using an alternate value](../syntax/pe.md#use_an_alternate_value)
507507
- **check if a directory exists, if not, create it**
508508
- `test ! -d /home/user/foo && mkdir /home/user/foo`
509509
- `[ ! -d /home/user/foo ] && mkdir /home/user/foo`
510510
- `if [ ! -d /home/user/foo ]; then mkdir /home/user/foo; fi`
511511
- **check if minimum one parameter was given, and that one is "Hello"**
512512
- `test $# -ge 1 -a "$1" = "Hello" || exit 1`
513-
- `[ $# -ge 1 ] && [ "$1" = "Hello" ] || exit 1` (see [lists description](/syntax/basicgrammar#lists))
513+
- `[ $# -ge 1 ] && [ "$1" = "Hello" ] || exit 1` (see [lists description](../syntax/basicgrammar.md#lists))
514514
515515
### Listing directories
516516
517-
Using a [for-loop](/syntax/ccmd/classic_for) to iterate through all entries of a directory, if an entry is a directory (`[ -d "$fn" ]`), print its name:
517+
Using a [for-loop](../syntax/ccmd/classic_for.md) to iterate through all entries of a directory, if an entry is a directory (`[ -d "$fn" ]`), print its name:
518518
519519
```bash
520520
for fn in *; do
@@ -524,8 +524,8 @@ done
524524
525525
## See also
526526
527-
- Internal: [conditional expression](/syntax/ccmd/conditional_expression) (aka "the new test command")
528-
- Internal: [the if-clause](/syntax/ccmd/if_clause)
527+
- Internal: [conditional expression](../syntax/ccmd/conditional_expression.md) (aka "the new test command")
528+
- Internal: [the if-clause](../syntax/ccmd/if_clause.md)
529529
530530
[^1]: <rant\>Of course, one can wonder what is the use of including the
531531
parenthesis in the specification without defining the behaviour with

docs/dict/directory.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Directory
22

33
In terms of UNIX(r), a directory is a special file which contains a list
4-
of [hardlinks](/dict/terms/hardlink) to other files. These other files
4+
of [hardlinks](../dict/terms/hardlink.md) to other files. These other files
55
also can be directories of course, so it\'s possible to create a
66
\"hierarchy of directories\" - the UNIX(r)-typical filesystem structure.
77

@@ -10,6 +10,6 @@ all other directory entries are **subdirectories** of it.
1010

1111
## See also
1212

13-
- [hardlink](/dict/terms/hardlink)
14-
- [file](/dict/terms/file)
15-
- [special file](/dict/terms/special_file)
13+
- [hardlink](../dict/terms/hardlink.md)
14+
- [file](../dict/terms/file.md)
15+
- [special file](../dict/terms/special_file.md)

docs/dict/end_of_options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ except
2828
## See also
2929

3030
- Scripting article, internal:
31-
[getopts_tutorial](/howto/getopts_tutorial)
31+
[getopts_tutorial](../howto/getopts_tutorial.md)

docs/dict/file.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
# File
22

3-
A file is a pool of data in the [filesystem](/dict/terms/filesystem). On
3+
A file is a pool of data in the [filesystem](../dict/terms/filesystem.md). On
44
userlevel, it\'s referenced using a name, a
5-
[hardlink](/dict/terms/hardlink) to the file.
5+
[hardlink](../dict/terms/hardlink.md) to the file.
66

77
If a file is not referenced anymore (number of hardlinks to it drops to
88
0) then the space allocated for that file is re-used, unless it\'s still
99
used by some process.
1010

1111
The file-data splits into actual payload (file contents) and some
1212
metadata like filesize, filemode or timestamps. The metadata is stored
13-
in the [inode](/dict/terms/inode).
13+
in the [inode](../dict/terms/inode.md).
1414

15-
Strictly spoken, a [hardlink](/dict/terms/hardlink) (also called
16-
\"filename\") points to the [inode](/dict/terms/inode) which organizes a
15+
Strictly spoken, a [hardlink](../dict/terms/hardlink.md) (also called
16+
\"filename\") points to the [inode](../dict/terms/inode.md) which organizes a
1717
file, not to the file itself.
1818

1919
## See also
2020

21-
- [filesystem](/dict/terms/filesystem)
22-
- [filetimes](/dict/terms/filetimes)
23-
- [hardlink](/dict/terms/hardlink)
24-
- [inode](/dict/terms/inode)
21+
- [filesystem](../dict/terms/filesystem.md)
22+
- [filetimes](../dict/terms/filetimes.md)
23+
- [hardlink](../dict/terms/hardlink.md)
24+
- [inode](../dict/terms/inode.md)

docs/dict/globbing.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ which serves the same purpose.
2323

2424
## See also
2525

26-
- [shell](/dict/terms/shell)
27-
- [hardlink](/dict/terms/hardlink)
26+
- [shell](../dict/terms/shell.md)
27+
- [hardlink](../dict/terms/hardlink.md)
2828

2929
## See also (article)
3030

31-
- [pathname expansion](/syntax/expansion/globs)
31+
- [pathname expansion](../syntax/expansion/globs.md)

docs/dict/hardlink.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,16 @@ Also the article for:
44

55
- filename
66

7-
A hardlink associates a *filename* with a [file](/dict/terms/file). That
7+
A hardlink associates a *filename* with a [file](../dict/terms/file.md). That
88
name is an entry in a directory listing. Of course a file can have more
99
hardlinks to it (usually the number of hardlinks to a file is limited),
1010
but all hardlinks to a file must reside on the same
11-
[filesystem](/dict/terms/filesystem) as the file itself!
11+
[filesystem](../dict/terms/filesystem.md) as the file itself!
1212

1313
What you usually call a file is just a name for that file, and thus, a
1414
hardlink.
1515

16-
The difference between a [symbolic link](/dict/terms/symlink) and a hard
16+
The difference between a [symbolic link](../dict/terms/symlink.md) and a hard
1717
link is that there is no easy way to differentiate between a \'real\'
1818
file and a hard link, let\'s take a look at the example:
1919

@@ -46,6 +46,6 @@ is freed when the last hard link pointing to it is deleted.
4646

4747
## See also
4848

49-
- [file](/dict/terms/file)
50-
- [filesystem](/dict/terms/filesystem)
51-
- [symlink](/dict/terms/symlink)
49+
- [file](../dict/terms/file.md)
50+
- [filesystem](../dict/terms/filesystem.md)
51+
- [symlink](../dict/terms/symlink.md)

docs/dict/parameter.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ A positional parameter is denoted by a number other than `0` (zero).
4040
Positional parameters reflect the shell\'s arguments that are not given
4141
to the shell itself (in practise, the script arguments, also the
4242
function arguments). You can\'t directly assign to the positional
43-
parameters, however, [the set builtin command](/commands/builtin/set)
43+
parameters, however, [the set builtin command](../commands/builtin/set.md)
4444
can be used to indirectly set them.
4545

4646
The first to ninth positional parameter is referenced by `$1` to `$9`.
@@ -50,18 +50,18 @@ by the number given in curly braces, i.e., `${10}` or `${432}`.
5050
Unlike popular belief, `$0` is *not a positional parameter*.
5151

5252
See also the [scripting article about handling positional
53-
parameters](/scripting/posparams).
53+
parameters](../scripting/posparams.md).
5454

5555
## special parameters
5656

5757
There are a bunch of special parameters, which are set by the shell.
5858
Direct assignment to them is not possible. These parameter names are
5959
formed of one character.
6060

61-
Please see [shellvars](/syntax/shellvars).
61+
Please see [shellvars](../syntax/shellvars.md).
6262

6363
## See also
6464

65-
- Syntax article, internal: [pe](/syntax/pe)
66-
- Syntax article, internal: [shellvars](/syntax/shellvars)
67-
- Scripting article, internal: [posparams](/scripting/posparams)
65+
- Syntax article, internal: [pe](../syntax/pe.md)
66+
- Syntax article, internal: [shellvars](../syntax/shellvars.md)
67+
- Scripting article, internal: [posparams](../scripting/posparams.md)

docs/dict/posix.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ behaviour of the system shell and some utilities (commands).
1313

1414
## See also
1515

16-
- Dictionary, internal: [shell](/dict/terms/shell)
16+
- Dictionary, internal: [shell](../dict/terms/shell.md)

docs/dict/special_file.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@ too.
1414

1515
## See also
1616

17-
- [file](/dict/terms/file)
18-
- [filename](/dict/terms/hardlink)
19-
- [directory](/dict/terms/directory)
17+
- [file](../dict/terms/file.md)
18+
- [filename](../dict/terms/hardlink.md)
19+
- [directory](../dict/terms/directory.md)

docs/dict/symlink.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ it can
1010

1111
## See also
1212

13-
- [hardlink](/dict/terms/hardlink)
14-
- [filesystem](/dict/terms/filesystem)
15-
- [directory](/dict/terms/directory)
13+
- [hardlink](../dict/terms/hardlink.md)
14+
- [filesystem](../dict/terms/filesystem.md)
15+
- [directory](../dict/terms/directory.md)

0 commit comments

Comments
 (0)