Matthias Firner sagte:

>> > -------schnipp-----------
>> > doppelpunkt () {
>> >    doppelpunkt | doppelpunkt &
>> > }
>> > doppelpunkt
>> > ---------schnapp--------
>> >
>> > Alle Klarheiten beseitigt? ;-)
>>
>> Jau! Ich hab's gefressen!
>
> OK. Ich nicht. Was macht das? Und warum das '()' ?

Soweit ich es verstanden habe, sind das hier die beiden relevanten Stellen
aus der Manpage bash(1):

       [ function ] name () { list; }
              This defines a function named name.   The  body  of
              the  function is the list of commands between { and
              }.  This list is executed whenever name  is  speci�
              fied  as  the  name  of a simple command.  The exit
              status of a function is the exit status of the last
              command  executed  in  the  body.   (See  FUNCTIONS
              below.)

       : [arguments]
              No effect; the command does nothing beyond  expand�
              ing arguments and performing any specified redirec�
              tions.  A zero exit code is returned.

Ciao,

-martin

-- 
Schmitt Systemberatung
Giessener Str. 18
35415 Pohlheim
Deutschland/Germany
Tel. +49(64 03)9 69 08 78
Fax +49(64 03)9 69 08 79
http://www.scsy.de



----------------------------------------------------------------------------
PUG - Penguin User Group Wiesbaden - http://www.pug.org

Antwort per Email an