sh.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Fri, 22 Jan 2016 22:10:18 +0200
changeset 1877 7627e51556bf
parent 1334 9bf0d5a1f0cf
child 1905 fba288d59662
permissions -rw-r--r--
Table/index sizes.

.. -*- coding: utf-8; -*-
.. include:: HEADER.rst

========
 Shell.
========
.. contents::

Quoting.
========

  http://www.mpi-inf.mpg.de/~uwe/lehre/unixffb/quoting-guide.html
                A Guide to Unix Shell Quoting

Portability.
============

  http://code.dogmap.org/lintsh/
                lintsh is a Bourne shell that optionally warns about suspicious
                or nonportable constructs
  http://www.gnu.org/software/autoconf/manual/html_node/Portable-Shell.html
                Portable Shell Programming

Kill processes after timeout.
=============================
::

  $ yes xxx& p1=$! ; yes ===& p2=$! ; sleep 2; kill $p1; kill $p2