[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Substring search in dash [ _NOT_ bash ] shell



Hi,

for a moment, my fingers were faster than my brain.

I wrote:
> The "test" expression used is "A = B". There are operators like "-o" for
> logical "or". "A -o B" is true if a is true, or if be is true, or both are
> true.

Translation via brain:

The "test" expression used is
  "`hostname`" = bob

There are operators like "-o" for logical "or":

  "`hostname`" = bob -o "`hostname`" = mary -o "`hostname`" = sam

I.e. "test" will return 0 if one of the "=" expressions evaluates
to true.


Have a nice day :)

Thomas


Reply to: