sh.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Wed, 20 Jun 2012 13:06:50 +0300
changeset 1293 4c312e2d8e6b
parent 1130 24f389eeb157
child 1334 9bf0d5a1f0cf
permissions -rw-r--r--
Hams in Debian project.

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