sh.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 22 Feb 2016 12:41:52 +0200
changeset 1903 901e7394849f
parent 1334 9bf0d5a1f0cf
child 1905 fba288d59662
permissions -rw-r--r--
Decrease intent to increase space usage on mobile.

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