sh.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 13:02:27 +0200
changeset 1907 f4b078cbff20
parent 1905 fba288d59662
child 1912 8b81a8f0f692
permissions -rw-r--r--
TXT files no longer used.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1129
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     1
.. -*- coding: utf-8; -*-
1334
9bf0d5a1f0cf Include common header with quick links.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1130
diff changeset
     2
.. include:: HEADER.rst
1129
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     3
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     4
========
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     5
 Shell.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     6
========
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     7
.. contents::
1905
fba288d59662 Include only local subsections into TOC. This prevent duplication of
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1334
diff changeset
     8
   :local:
1129
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
Quoting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
========
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
  http://www.mpi-inf.mpg.de/~uwe/lehre/unixffb/quoting-guide.html
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
                A Guide to Unix Shell Quoting
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
Portability.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
============
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
  http://code.dogmap.org/lintsh/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
                lintsh is a Bourne shell that optionally warns about suspicious
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    21
                or nonportable constructs
1130
24f389eeb157 Portable Shell Programming
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1129
diff changeset
    22
  http://www.gnu.org/software/autoconf/manual/html_node/Portable-Shell.html
24f389eeb157 Portable Shell Programming
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1129
diff changeset
    23
                Portable Shell Programming
1129
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
Kill processes after timeout.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    26
=============================
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    27
::
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    28
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29
  $ yes xxx& p1=$! ; yes ===& p2=$! ; sleep 2; kill $p1; kill $p2
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    30