sh.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 13 Jul 2012 22:32:19 +0300
changeset 1334 9bf0d5a1f0cf
parent 1130 24f389eeb157
child 1905 fba288d59662
permissions -rw-r--r--
Include common header with quick links.
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::
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     8
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
     9
Quoting.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    10
========
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    11
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    12
  http://www.mpi-inf.mpg.de/~uwe/lehre/unixffb/quoting-guide.html
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    13
                A Guide to Unix Shell Quoting
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    14
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    15
Portability.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    16
============
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    17
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    18
  http://code.dogmap.org/lintsh/
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    19
                lintsh is a Bourne shell that optionally warns about suspicious
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    20
                or nonportable constructs
1130
24f389eeb157 Portable Shell Programming
Oleksandr Gavenko <gavenkoa@gmail.com>
parents: 1129
diff changeset
    21
  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
    22
                Portable Shell Programming
1129
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    23
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    24
Kill processes after timeout.
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    25
=============================
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
  $ yes xxx& p1=$! ; yes ===& p2=$! ; sleep 2; kill $p1; kill $p2
Oleksandr Gavenko <gavenkoa@gmail.com>
parents:
diff changeset
    29