author | Oleksandr Gavenko <gavenkoa@gmail.com> |
Tue, 16 Jun 2020 14:37:50 +0300 | |
changeset 2420 | da418d28831e |
parent 2228 | 837f1337c59b |
permissions | -rw-r--r-- |
1129 | 1 |
.. -*- coding: utf-8; -*- |
2 |
||
3 |
======== |
|
4 |
Shell. |
|
5 |
======== |
|
6 |
.. contents:: |
|
1905
fba288d59662
Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1334
diff
changeset
|
7 |
:local: |
1129 | 8 |
|
9 |
Quoting. |
|
10 |
======== |
|
11 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
12 |
http://www.mpi-inf.mpg.de/~uwe/lehre/unixffb/quoting-guide.html |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
13 |
A Guide to Unix Shell Quoting |
1129 | 14 |
|
15 |
Portability. |
|
16 |
============ |
|
17 |
||
2228
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
18 |
http://code.dogmap.org/lintsh/ |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
19 |
lintsh is a Bourne shell that optionally warns about suspicious |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
20 |
or nonportable constructs |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
21 |
http://www.gnu.org/software/autoconf/manual/html_node/Portable-Shell.html |
837f1337c59b
Removed indentation that compiled into <blockquote>.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
1912
diff
changeset
|
22 |
Portable Shell Programming |
1129 | 23 |
|
24 |
Kill processes after timeout. |
|
25 |
============================= |
|
26 |
:: |
|
27 |
||
28 |
$ yes xxx& p1=$! ; yes ===& p2=$! ; sleep 2; kill $p1; kill $p2 |
|
29 |