home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!spool.mu.edu!yale.edu!ira.uka.de!math.fu-berlin.de!uniol!tpki.toppoint.de!kris
- From: kris@tpki.toppoint.de (Kristian Koehntopp)
- Subject: Re: How to do $#a in Bourne shell?
- X-Copyright: (C) Copyright 1992 Kristian Koehntopp -- All rights reserved.
- Reproduktion, auch auszugsweise, ausserhalb elektronischer,
- nichtkommerzieller Datennetze nur mit ausdruecklichem,
- schriftlichem Einverstaendnis des Autors.
- Organization: Toppoint Mailbox e.V.
- Date: Tue, 15 Sep 1992 08:51:48 GMT
- Message-ID: <1992Sep15.085148.9807@tpki.toppoint.de>
- References: <peter.716085132@merlin> <1992Sep10.190928.7699@oracle.us.oracle.com> <1992Sep12.022450.20682@sq.sq.com>
- X-Excuse: X-Copyright wegen Emma, Suedwestpresse und /C'T/DISKUSSIONEN.
- Lines: 17
-
- In <1992Sep12.022450.20682@sq.sq.com> msb@sq.sq.com (Mark Brader) writes:
- > listcount=`set dummy $list; shift; echo $#`
-
- This is a kludge. Use "--" instead:
-
- listcount=`set -- $list; echo $#`
-
- Of course there are certainly shells which fail to understand
- "--" as "end of options".
-
- Kristian
- --
- Kristian Koehntopp, Harmsstrasse 98, FRG W-2300 Kiel, +49 431 676689
- "Look up!"
- -- Asylum
-
-
-