help-bash
[Top][All Lists]
Advanced

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

Re: [Help-bash] checking file line: 'commit;'


From: Chet Ramey
Subject: Re: [Help-bash] checking file line: 'commit;'
Date: Thu, 11 Aug 2016 10:52:38 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 8/11/16 10:34 AM, Paolo Supino wrote:
> Hi Chet
> 
> thank you for the reply, I tried [ "$string" = 'commit;' ] but it didn't
> work :-( and I don't think that case cuts it for my problem.

Then your initial problem statement was inaccurate.  Either your string
has leading whitespace or there is some other character in the string
that prevents it from exactly matching `commit;'.

>> On 8/11/16 8:59 AM, Paolo Supino wrote:
>>
>>> Can anyone please help understand how I
>>> can check that a string equals to commit;

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]