[plug] strncmp in shell

Russell Steicke r.steicke at bom.gov.au
Mon Jan 19 15:12:36 WST 2004


On Mon, Jan 19, 2004 at 02:52:52PM +0800, James Devenish wrote:
...
> > $ FOO=one
> > $ echo ${FOO/one/}
> > 
> > $ echo ${FOO/onex/}
> > one
> > $ echo ${FOO/on/}
> > e
> $ FOO=oneone
> $ echo ${FOO/one/}
> one

Yes, but it doesn't expand to the empty string, for which I was testing.



-- 
Russell Steicke

-- Fortune says:
He has shown you, o man, what is good.  And what does the Lord ask of you,
but to do justice, and to love kindness, and to walk humbly before your God?



More information about the plug mailing list