home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / hello-1.3 / hello.info < prev    next >
Encoding:
GNU Info File  |  1993-05-22  |  24.4 KB  |  547 lines

  1. This is Info file hello.info, produced by Makeinfo-1.55 from the input
  2. file ./hello.texi.
  3.  
  4.    This file documents the the GNU `hello' command for printing a
  5. greeting message.
  6.  
  7.    Copyright (C) 1992, 1993 Free Software Foundation, Inc.
  8.  
  9.    Permission is granted to make and distribute verbatim copies of this
  10. manual provided the copyright notice and this permission notice are
  11. preserved on all copies.
  12.  
  13.    Permission is granted to copy and distribute modified versions of
  14. this manual under the conditions for verbatim copying, provided that
  15. the entire resulting derived work is distributed under the terms of a
  16. permission notice identical to this one.
  17.  
  18.    Permission is granted to copy and distribute translations of this
  19. manual into another language, under the above conditions for modified
  20. versions, except that this permission notice may be stated in a
  21. translation approved by the Foundation.
  22.  
  23. 
  24. File: hello.info,  Node: Top,  Up: (dir)
  25.  
  26.    This file documents the the GNU `hello' command to print a greeting
  27. message.
  28.  
  29. * Menu:
  30.  
  31. * Instructions::    How to read this manual.
  32. * Copying::        How you can copy and share `hello'.
  33. * Overview::        Preliminary information.
  34. * Sample::        Sample output from `hello'.
  35. * Invoking hello::    How to run `hello'.
  36. * Problems::        Reporting bugs.
  37. * Concept Index::    Index of concepts.
  38.  
  39. 
  40. File: hello.info,  Node: Instructions,  Next: Copying,  Up: Top
  41.  
  42. How to Read This Manual
  43. ***********************
  44.  
  45.    To read this manual, begin at the beginning, reading from left to
  46. right and top to bottom, until you get to the end.  Then stop.  You may
  47. pause for a beer anywhere in the middle as well, if you wish.  (Please
  48. note, however, that The King strongly advises against heavy use of
  49. prescription pharmaceuticals, based on his extensive personal and
  50. professional experience.)
  51.  
  52. 
  53. File: hello.info,  Node: Copying,  Next: Overview,  Prev: Instructions,  Up: Top
  54.  
  55. GNU GENERAL PUBLIC LICENSE
  56. **************************
  57.  
  58.                          Version 2, June 1991
  59.  
  60.      Copyright (C) 1989, 1991 Free Software Foundation, Inc.
  61.      675 Mass Ave, Cambridge, MA 02139, USA
  62.      
  63.      Everyone is permitted to copy and distribute verbatim copies
  64.      of this license document, but changing it is not allowed.
  65.  
  66. Preamble
  67. ========
  68.  
  69.    The licenses for most software are designed to take away your
  70. freedom to share and change it.  By contrast, the GNU General Public
  71. License is intended to guarantee your freedom to share and change free
  72. software--to make sure the software is free for all its users.  This
  73. General Public License applies to most of the Free Software
  74. Foundation's software and to any other program whose authors commit to
  75. using it.  (Some other Free Software Foundation software is covered by
  76. the GNU Library General Public License instead.)  You can apply it to
  77. your programs, too.
  78.  
  79.    When we speak of free software, we are referring to freedom, not
  80. price.  Our General Public Licenses are designed to make sure that you
  81. have the freedom to distribute copies of free software (and charge for
  82. this service if you wish), that you receive source code or can get it
  83. if you want it, that you can change the software or use pieces of it in
  84. new free programs; and that you know you can do these things.
  85.  
  86.    To protect your rights, we need to make restrictions that forbid
  87. anyone to deny you these rights or to ask you to surrender the rights.
  88. These restrictions translate to certain responsibilities for you if you
  89. distribute copies of the software, or if you modify it.
  90.  
  91.    For example, if you distribute copies of such a program, whether
  92. gratis or for a fee, you must give the recipients all the rights that
  93. you have.  You must make sure that they, too, receive or can get the
  94. source code.  And you must show them these terms so they know their
  95. rights.
  96.  
  97.    We protect your rights with two steps: (1) copyright the software,
  98. and (2) offer you this license which gives you legal permission to copy,
  99. distribute and/or modify the software.
  100.  
  101.    Also, for each author's protection and ours, we want to make certain
  102. that everyone understands that there is no warranty for this free
  103. software.  If the software is modified by someone else and passed on, we
  104. want its recipients to know that what they have is not the original, so
  105. that any problems introduced by others will not reflect on the original
  106. authors' reputations.
  107.  
  108.    Finally, any free program is threatened constantly by software
  109. patents.  We wish to avoid the danger that redistributors of a free
  110. program will individually obtain patent licenses, in effect making the
  111. program proprietary.  To prevent this, we have made it clear that any
  112. patent must be licensed for everyone's free use or not licensed at all.
  113.  
  114.    The precise terms and conditions for copying, distribution and
  115. modification follow.
  116.  
  117.     TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
  118.  
  119.   1. This License applies to any program or other work which contains a
  120.      notice placed by the copyright holder saying it may be distributed
  121.      under the terms of this General Public License.  The "Program",
  122.      below, refers to any such program or work, and a "work based on
  123.      the Program" means either the Program or any derivative work under
  124.      copyright law: that is to say, a work containing the Program or a
  125.      portion of it, either verbatim or with modifications and/or
  126.      translated into another language.  (Hereinafter, translation is
  127.      included without limitation in the term "modification".)  Each
  128.      licensee is addressed as "you".
  129.  
  130.      Activities other than copying, distribution and modification are
  131.      not covered by this License; they are outside its scope.  The act
  132.      of running the Program is not restricted, and the output from the
  133.      Program is covered only if its contents constitute a work based on
  134.      the Program (independent of having been made by running the
  135.      Program).  Whether that is true depends on what the Program does.
  136.  
  137.   2. You may copy and distribute verbatim copies of the Program's
  138.      source code as you receive it, in any medium, provided that you
  139.      conspicuously and appropriately publish on each copy an appropriate
  140.      copyright notice and disclaimer of warranty; keep intact all the
  141.      notices that refer to this License and to the absence of any
  142.      warranty; and give any other recipients of the Program a copy of
  143.      this License along with the Program.
  144.  
  145.      You may charge a fee for the physical act of transferring a copy,
  146.      and you may at your option offer warranty protection in exchange
  147.      for a fee.
  148.  
  149.   3. You may modify your copy or copies of the Program or any portion
  150.      of it, thus forming a work based on the Program, and copy and
  151.      distribute such modifications or work under the terms of Section 1
  152.      above, provided that you also meet all of these conditions:
  153.  
  154.        a. You must cause the modified files to carry prominent notices
  155.           stating that you changed the files and the date of any change.
  156.  
  157.        b. You must cause any work that you distribute or publish, that
  158.           in whole or in part contains or is derived from the Program
  159.           or any part thereof, to be licensed as a whole at no charge
  160.           to all third parties under the terms of this License.
  161.  
  162.        c. If the modified program normally reads commands interactively
  163.           when run, you must cause it, when started running for such
  164.           interactive use in the most ordinary way, to print or display
  165.           an announcement including an appropriate copyright notice and
  166.           a notice that there is no warranty (or else, saying that you
  167.           provide a warranty) and that users may redistribute the
  168.           program under these conditions, and telling the user how to
  169.           view a copy of this License.  (Exception: if the Program
  170.           itself is interactive but does not normally print such an
  171.           announcement, your work based on the Program is not required
  172.           to print an announcement.)
  173.  
  174.      These requirements apply to the modified work as a whole.  If
  175.      identifiable sections of that work are not derived from the
  176.      Program, and can be reasonably considered independent and separate
  177.      works in themselves, then this License, and its terms, do not
  178.      apply to those sections when you distribute them as separate
  179.      works.  But when you distribute the same sections as part of a
  180.      whole which is a work based on the Program, the distribution of
  181.      the whole must be on the terms of this License, whose permissions
  182.      for other licensees extend to the entire whole, and thus to each
  183.      and every part regardless of who wrote it.
  184.  
  185.      Thus, it is not the intent of this section to claim rights or
  186.      contest your rights to work written entirely by you; rather, the
  187.      intent is to exercise the right to control the distribution of
  188.      derivative or collective works based on the Program.
  189.  
  190.      In addition, mere aggregation of another work not based on the
  191.      Program with the Program (or with a work based on the Program) on
  192.      a volume of a storage or distribution medium does not bring the
  193.      other work under the scope of this License.
  194.  
  195.   4. You may copy and distribute the Program (or a work based on it,
  196.      under Section 2) in object code or executable form under the terms
  197.      of Sections 1 and 2 above provided that you also do one of the
  198.      following:
  199.  
  200.        a. Accompany it with the complete corresponding machine-readable
  201.           source code, which must be distributed under the terms of
  202.           Sections 1 and 2 above on a medium customarily used for
  203.           software interchange; or,
  204.  
  205.        b. Accompany it with a written offer, valid for at least three
  206.           years, to give any third party, for a charge no more than your
  207.           cost of physically performing source distribution, a complete
  208.           machine-readable copy of the corresponding source code, to be
  209.           distributed under the terms of Sections 1 and 2 above on a
  210.           medium customarily used for software interchange; or,
  211.  
  212.        c. Accompany it with the information you received as to the offer
  213.           to distribute corresponding source code.  (This alternative is
  214.           allowed only for noncommercial distribution and only if you
  215.           received the program in object code or executable form with
  216.           such an offer, in accord with Subsection b above.)
  217.  
  218.      The source code for a work means the preferred form of the work for
  219.      making modifications to it.  For an executable work, complete
  220.      source code means all the source code for all modules it contains,
  221.      plus any associated interface definition files, plus the scripts
  222.      used to control compilation and installation of the executable.
  223.      However, as a special exception, the source code distributed need
  224.      not include anything that is normally distributed (in either
  225.      source or binary form) with the major components (compiler,
  226.      kernel, and so on) of the operating system on which the executable
  227.      runs, unless that component itself accompanies the executable.
  228.  
  229.      If distribution of executable or object code is made by offering
  230.      access to copy from a designated place, then offering equivalent
  231.      access to copy the source code from the same place counts as
  232.      distribution of the source code, even though third parties are not
  233.      compelled to copy the source along with the object code.
  234.  
  235.   5. You may not copy, modify, sublicense, or distribute the Program
  236.      except as expressly provided under this License.  Any attempt
  237.      otherwise to copy, modify, sublicense or distribute the Program is
  238.      void, and will automatically terminate your rights under this
  239.      License.  However, parties who have received copies, or rights,
  240.      from you under this License will not have their licenses
  241.      terminated so long as such parties remain in full compliance.
  242.  
  243.   6. You are not required to accept this License, since you have not
  244.      signed it.  However, nothing else grants you permission to modify
  245.      or distribute the Program or its derivative works.  These actions
  246.      are prohibited by law if you do not accept this License.
  247.      Therefore, by modifying or distributing the Program (or any work
  248.      based on the Program), you indicate your acceptance of this
  249.      License to do so, and all its terms and conditions for copying,
  250.      distributing or modifying the Program or works based on it.
  251.  
  252.   7. Each time you redistribute the Program (or any work based on the
  253.      Program), the recipient automatically receives a license from the
  254.      original licensor to copy, distribute or modify the Program
  255.      subject to these terms and conditions.  You may not impose any
  256.      further restrictions on the recipients' exercise of the rights
  257.      granted herein.  You are not responsible for enforcing compliance
  258.      by third parties to this License.
  259.  
  260.   8. If, as a consequence of a court judgment or allegation of patent
  261.      infringement or for any other reason (not limited to patent
  262.      issues), conditions are imposed on you (whether by court order,
  263.      agreement or otherwise) that contradict the conditions of this
  264.      License, they do not excuse you from the conditions of this
  265.      License.  If you cannot distribute so as to satisfy simultaneously
  266.      your obligations under this License and any other pertinent
  267.      obligations, then as a consequence you may not distribute the
  268.      Program at all.  For example, if a patent license would not permit
  269.      royalty-free redistribution of the Program by all those who
  270.      receive copies directly or indirectly through you, then the only
  271.      way you could satisfy both it and this License would be to refrain
  272.      entirely from distribution of the Program.
  273.  
  274.      If any portion of this section is held invalid or unenforceable
  275.      under any particular circumstance, the balance of the section is
  276.      intended to apply and the section as a whole is intended to apply
  277.      in other circumstances.
  278.  
  279.      It is not the purpose of this section to induce you to infringe any
  280.      patents or other property right claims or to contest validity of
  281.      any such claims; this section has the sole purpose of protecting
  282.      the integrity of the free software distribution system, which is
  283.      implemented by public license practices.  Many people have made
  284.      generous contributions to the wide range of software distributed
  285.      through that system in reliance on consistent application of that
  286.      system; it is up to the author/donor to decide if he or she is
  287.      willing to distribute software through any other system and a
  288.      licensee cannot impose that choice.
  289.  
  290.      This section is intended to make thoroughly clear what is believed
  291.      to be a consequence of the rest of this License.
  292.  
  293.   9. If the distribution and/or use of the Program is restricted in
  294.      certain countries either by patents or by copyrighted interfaces,
  295.      the original copyright holder who places the Program under this
  296.      License may add an explicit geographical distribution limitation
  297.      excluding those countries, so that distribution is permitted only
  298.      in or among countries not thus excluded.  In such case, this
  299.      License incorporates the limitation as if written in the body of
  300.      this License.
  301.  
  302.  10. The Free Software Foundation may publish revised and/or new
  303.      versions of the General Public License from time to time.  Such
  304.      new versions will be similar in spirit to the present version, but
  305.      may differ in detail to address new problems or concerns.
  306.  
  307.      Each version is given a distinguishing version number.  If the
  308.      Program specifies a version number of this License which applies
  309.      to it and "any later version", you have the option of following
  310.      the terms and conditions either of that version or of any later
  311.      version published by the Free Software Foundation.  If the Program
  312.      does not specify a version number of this License, you may choose
  313.      any version ever published by the Free Software Foundation.
  314.  
  315.  11. If you wish to incorporate parts of the Program into other free
  316.      programs whose distribution conditions are different, write to the
  317.      author to ask for permission.  For software which is copyrighted
  318.      by the Free Software Foundation, write to the Free Software
  319.      Foundation; we sometimes make exceptions for this.  Our decision
  320.      will be guided by the two goals of preserving the free status of
  321.      all derivatives of our free software and of promoting the sharing
  322.      and reuse of software generally.
  323.  
  324.                                 NO WARRANTY
  325.  
  326.  12. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO
  327.      WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE
  328.      LAW.  EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
  329.      HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT
  330.      WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT
  331.      NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
  332.      FITNESS FOR A PARTICULAR PURPOSE.  THE ENTIRE RISK AS TO THE
  333.      QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU.  SHOULD THE
  334.      PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY
  335.      SERVICING, REPAIR OR CORRECTION.
  336.  
  337.  13. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
  338.      WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY
  339.      MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE
  340.      LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL,
  341.      INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR
  342.      INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
  343.      DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU
  344.      OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY
  345.      OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN
  346.      ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
  347.  
  348.                       END OF TERMS AND CONDITIONS
  349.  
  350. How to Apply These Terms to Your New Programs
  351. =============================================
  352.  
  353.    If you develop a new program, and you want it to be of the greatest
  354. possible use to the public, the best way to achieve this is to make it
  355. free software which everyone can redistribute and change under these
  356. terms.
  357.  
  358.    To do so, attach the following notices to the program.  It is safest
  359. to attach them to the start of each source file to most effectively
  360. convey the exclusion of warranty; and each file should have at least
  361. the "copyright" line and a pointer to where the full notice is found.
  362.  
  363.      ONE LINE TO GIVE THE PROGRAM'S NAME AND AN IDEA OF WHAT IT DOES.
  364.      Copyright (C) 19YY  NAME OF AUTHOR
  365.      
  366.      This program is free software; you can redistribute it and/or
  367.      modify it under the terms of the GNU General Public License
  368.      as published by the Free Software Foundation; either version 2
  369.      of the License, or (at your option) any later version.
  370.      
  371.      This program is distributed in the hope that it will be useful,
  372.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  373.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  374.      GNU General Public License for more details.
  375.      
  376.      You should have received a copy of the GNU General Public License
  377.      along with this program; if not, write to the Free Software
  378.      Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  379.  
  380.    Also add information on how to contact you by electronic and paper
  381. mail.
  382.  
  383.    If the program is interactive, make it output a short notice like
  384. this when it starts in an interactive mode:
  385.  
  386.      Gnomovision version 69, Copyright (C) 19YY NAME OF AUTHOR
  387.      Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
  388.      type `show w'.  This is free software, and you are welcome
  389.      to redistribute it under certain conditions; type `show c'
  390.      for details.
  391.  
  392.    The hypothetical commands `show w' and `show c' should show the
  393. appropriate parts of the General Public License.  Of course, the
  394. commands you use may be called something other than `show w' and `show
  395. c'; they could even be mouse-clicks or menu items--whatever suits your
  396. program.
  397.  
  398.    You should also get your employer (if you work as a programmer) or
  399. your school, if any, to sign a "copyright disclaimer" for the program,
  400. if necessary.  Here is a sample; alter the names:
  401.  
  402.      Yoyodyne, Inc., hereby disclaims all copyright
  403.      interest in the program `Gnomovision'
  404.      (which makes passes at compilers) written
  405.      by James Hacker.
  406.      
  407.      SIGNATURE OF TY COON, 1 April 1989
  408.      Ty Coon, President of Vice
  409.  
  410.    This General Public License does not permit incorporating your
  411. program into proprietary programs.  If your program is a subroutine
  412. library, you may consider it more useful to permit linking proprietary
  413. applications with the library.  If this is what you want to do, use the
  414. GNU Library General Public License instead of this License.
  415.  
  416. 
  417. File: hello.info,  Node: Overview,  Next: Sample,  Prev: Copying,  Up: Top
  418.  
  419. Overview
  420. ********
  421.  
  422.    The GNU `hello' program produces a familiar, friendly greeting.  It
  423. allows nonprogrammers to use a classic computer science tool which
  424. would otherwise be unavailable to them.  Because it is protected by the
  425. GNU General Public License, users are free to share and change it.
  426.  
  427.    GNU `hello' was written by Mike Haertel, David MacKenzie,
  428. Jan Brittenson, Charles Hannum, Roland McGrath, Noah Friedman, and
  429. The King.
  430.  
  431. 
  432. File: hello.info,  Node: Sample,  Next: Invoking hello,  Prev: Overview,  Up: Top
  433.  
  434. Sample Output
  435. *************
  436.  
  437.    Here are some realistic examples of running GNU `hello'.
  438.  
  439.    This is the output of the command `hello':
  440.  
  441.      Hello, world!
  442.  
  443.    This is the output of the command `hello --help':
  444.  
  445.      This is GNU Hello, THE greeting printing program.
  446.      Usage: hello [-htvm] [--help] [--traditional] [--version] [--mail]
  447.        -h, --help                    Print a summary of the options
  448.        -t, --traditional             Use traditional greeting format
  449.        -v, --version                 Print the version number
  450.        -m, --mail                    Print your mail
  451.  
  452.    This is the output of the command `hello --traditional':
  453.  
  454.      hello, world
  455.  
  456. 
  457. File: hello.info,  Node: Invoking hello,  Next: Problems,  Prev: Sample,  Up: Top
  458.  
  459. Invoking `hello'
  460. ****************
  461.  
  462.    The format for running the `hello' program is:
  463.  
  464.      hello OPTION ...
  465.  
  466.    `hello' supports the following options:
  467.  
  468. `--help'
  469. `-h'
  470.      Print an informative help message describing the options and then
  471.      exit.
  472.  
  473. `--version'
  474. `-v'
  475.      Print the version number of `hello' on the standard error output
  476.      and then exit.
  477.  
  478. `--traditional'
  479. `-t'
  480.      Use the traditional greeting message `hello, world' rather than
  481.      the more modern `Hello, world!'.
  482.  
  483. `--mail'
  484. `-m'
  485.      Print your mail on the standard output.
  486.  
  487. 
  488. File: hello.info,  Node: Problems,  Next: Concept Index,  Prev: Invoking hello,  Up: Top
  489.  
  490. Reporting Bugs
  491. **************
  492.  
  493.    If you find a bug in GNU `hello', please send electronic mail to
  494. `bug-gnu-hello@prep.ai.mit.edu'.  Include the version number, which you
  495. can find by running `hello --version'.  Also include in your message
  496. the output that the program produced and the output you expected.
  497.  
  498.    If you have other questions, comments or suggestions about GNU
  499. `hello', contact The King via electronic mail to
  500. `elvis@graceland.gnu.ai.mit.edu'.  The King will try to help you out,
  501. although he may not have time to fix your problems.
  502.  
  503. 
  504. File: hello.info,  Node: Concept Index,  Prev: Problems,  Up: Top
  505.  
  506. Concept Index
  507. *************
  508.  
  509. * Menu:
  510.  
  511. * bugs:                                 Problems.
  512. * creature, feeping:                    Invoking hello.
  513. * creeping feature:                     Invoking hello.
  514. * feature, creeping:                    Invoking hello.
  515. * feeping creature:                     Invoking hello.
  516. * getting help:                         Invoking hello.
  517. * greetings:                            Overview.
  518. * help:                                 Invoking hello.
  519. * how to read:                          Instructions.
  520. * invoking:                             Invoking hello.
  521. * mail:                                 Invoking hello.
  522. * manual, how to read:                  Instructions.
  523. * modern:                               Invoking hello.
  524. * options:                              Invoking hello.
  525. * overview:                             Overview.
  526. * problems:                             Problems.
  527. * reading:                              Instructions.
  528. * sample:                               Sample.
  529. * tail recursion:                       Concept Index.
  530. * traditional:                          Invoking hello.
  531. * usage:                                Invoking hello.
  532. * version:                              Invoking hello.
  533.  
  534.  
  535. 
  536. Tag Table:
  537. Node: Top896
  538. Node: Instructions1307
  539. Node: Copying1795
  540. Node: Overview20956
  541. Node: Sample21470
  542. Node: Invoking hello22226
  543. Node: Problems22858
  544. Node: Concept Index23495
  545. 
  546. End Tag Table
  547.