posix.rst
author Oleksandr Gavenko <gavenkoa@gmail.com>
Mon, 09 Oct 2017 10:49:36 +0300
changeset 2188 e95731eef030
parent 1912 8b81a8f0f692
child 2230 9e6ad6607a9e
permissions -rw-r--r--
Fixed: NameError: name 'locale_encoding' is not defined File /bin/rst2html.py, line 17, in <module> from docutils.core import publish_cmdline, default_description File /usr/lib/python2.7/site-packages/docutils/core.py, line 20, in <module> from docutils import frontend, io, utils, readers, writers File /usr/lib/python2.7/site-packages/docutils/frontend.py, line 41, in <module> import docutils.utils File /usr/lib/python2.7/site-packages/docutils/utils/__init__.py, line 20, in <module> import docutils.io File /usr/lib/python2.7/site-packages/docutils/io.py, line 18, in <module> from docutils.utils.error_reporting import locale_encoding, ErrorString, ErrorOutput File /usr/lib/python2.7/site-packages/docutils/utils/error_reporting.py, line 60, in <module> codecs.lookup(locale_encoding or '') # None -> '' NameError: name 'locale_encoding' is not defined

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

=======
 POSIX
=======
.. contents::
   :local:

Download POSIX
==============

  http://www.opengroup.org/onlinepubs/009695399/download
                download page for SYSV3

  http://www.opengroup.org/onlinepubs/9699919799/download
                download page for SYSV4

Shell command
=============

command
-------

Main semantic is to invoke command instead defined function with same name::

  $ ls() { ls --color "$@"; }
  $ ls                          # infinitely loop as func invoke itself
  $ ls() { command ls --color "$@"; }
  $ ls .                        # invoke /bin/ls with color output
  $ unset ls                    # forget func definition
  $ ls                          # invoke /bin/ls without color output

With '-p' arg Perform the command search using a default value for PATH that
is guaranteed to find all of the standard utilities::

  $ command -p getconf PATH

With '-v' arg work like 'which' command which not included in POSIX::

  $ command -v ls
  /usr/bin/ls
  $ command -v echo             # for build-in command print command itself
  echo                          # you can check for equality or for slash to
                                # distinguish from utilities