sh.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Sat, 30 Jun 2012 17:46:01 +0300
changeset 1312 a468648775f8
parent 1130 24f389eeb157
child 1334 9bf0d5a1f0cf
permissions -rw-r--r--
99 bottles of beer.

.. -*- 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
  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