sh.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sun, 11 Dec 2011 12:02:51 +0200
changeset 1129 63a7fba0f263
child 1130 24f389eeb157
permissions -rw-r--r--
lintsh

.. -*- coding: utf-8; -*-

========
 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

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

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