Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84 +MMDF+MULTI+2.11; site icdoc.UUCP Path: utzoo!linus!philabs!cmcl2!seismo!mcvax!ukc!icdoc!jsp From: jsp@icdoc.UUCP (Jan-Simon Pendry) Newsgroups: net.bugs.usg Subject: Re: basename(1) surprise Message-ID: <239@ivax.icdoc.UUCP> Date: Thu, 22-Aug-85 11:07:25 EDT Article-I.D.: ivax.239 Posted: Thu Aug 22 11:07:25 1985 Date-Received: Fri, 30-Aug-85 00:41:10 EDT References: <1217@hcrvx1.UUCP> Reply-To: jsp@icdoc.UUCP (Jan-Simon Pendry) Organization: Dept. of Computing, Imperial College, London, UK. Lines: 16 Xpath: icdoc ivax In article <1217@hcrvx1.UUCP> hugh@hcrvx1.UUCP (Hugh Redelmeier) writes: >Under System V the "suffix" operand of basename is a regular expression > ... if the programmer fails to >quote the dot twice (once for the shell, and once for basename's >pattern matcher) it will match any character. Thus > basename cccc .c >yields > cc Not on my System V machines! The example above prints "cccc". Of course - it could be the particular implementation but I see no need for a manufacturer to alter a shell script. [The software is based on SysVr2 for Vax.] -- Jan-Simon Pendry icdoc!jsp