Subject: Re: sh/csh inconsistency?
To: Joerg Klemenz <>
From: Roland Dowdeswell <>
List: tech-userlevel
Date: 10/10/2002 15:02:42
On 1034276341 seconds since the Beginning of the UNIX epoch
Joerg Klemenz wrote:

>Try this
>/home/jk>sh -c "echo /b*"
>/bin /boot
>/home/jk>sh -c "echo /c*"
>/home/jk>ksh -c "echo /b*"
>/bin /boot
>/home/jk>ksh -c "echo /c*" 
>/home/jk>csh -c "echo /b*" 
>/bin /boot
>/home/jk>csh -c "echo /c*"
>echo: No match.
>Who is right? sh/ksh or csh? Is this an error?

csh and sh have different semantics for globbing.  In csh, if you
want the default /bin/sh semantics you can ``set nonomatch''.  The
thing to remember here is that csh is not [and has never claimed
to be] /bin/sh compatible.

    Roland Dowdeswell                      http://www.Imrryr.ORG/~elric/