8 Replies Latest reply on Nov 19, 2012 3:22 AM by Dave Castle

    Return code of the grep command changed from 7.5 to 8.1?

      We have found a problem when running an nsh script from an installation of Bladelogic.

      We have an older version of Bladelogic (7.5) which executes a number of nsh scripts.



      When testing that the results of these scripts are the same under 8.1 I have found a problem with the return code of the grep command.

      Under 8.1 a grep command on a file which doesn’t exist returns a zero exit code. Under 7.5 it correctly returns an exit code of 1 (although Unix would return 2 for that particular error).

      This is invalidating the results of any tests using the grep command.