When returning a negative number from a shell function it is necessary to use "--" before the "-1", otherwise the "-1" is assumed to be an arg to return rather than a value.
Log in to post a comment.