Hello Gunnar!

On Tuesday 30 September 2008 Gunnar Thielebein wrote:
> For test I did some changes; then execute these two commands with
> different result.
>
> > [EMAIL PROTECTED]:/$ if sudo fsvs status -ostop_change=true;then
> > echo true;else echo false;fi
> > false
> > [EMAIL PROTECTED]:/$ if sudo fsvs status ;then echo true;else echo
> > false;fi
> > .m.?       244  etc/hosts
> > .m..       dir  etc
> > true
>
> Do i miss something here?
Maybe; I think it works as expected.

The documentation says

  The return code is 0 for successfull and 2 for an error. 1 is returned if
  the option "Stopping status reports as soon as changes are found" is used,
  and changes are found; ...

A normal "status" should never return an error - unless there's been one :-)
If you use the option, you'll get an exit code *if* changes are found.


Better now? Or how can I improve the documentation, so that it's clearer?


Regards,

Phil

-- 
Versioning your /etc, /home or even your whole installation?
             Try fsvs (fsvs.tigris.org)!

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to