FS#15383 - [vercmp] Add a flag to use return code instead of printing result
Attached to Project:
Pacman
Opened by Gavin Bisesi (Daenyth) - Sunday, 05 July 2009, 15:31 GMT
Last edited by Dan McGee (toofishes) - Sunday, 05 July 2009, 23:49 GMT
Opened by Gavin Bisesi (Daenyth) - Sunday, 05 July 2009, 15:31 GMT
Last edited by Dan McGee (toofishes) - Sunday, 05 July 2009, 23:49 GMT
|
Details
It would make it easier to script with vercmp if you could
use the return code instead of having to compare the printed
result. Maybe something like vercmp -r?
|
This task depends upon
Closed by Dan McGee (toofishes)
Sunday, 05 July 2009, 23:49 GMT
Reason for closing: Won't implement
Additional comments about closing: Closing by request, and although it could be handy it is easy to work around.
Sunday, 05 July 2009, 23:49 GMT
Reason for closing: Won't implement
Additional comments about closing: Closing by request, and although it could be handy it is easy to work around.
In addition, can you give an example use case where the return code is necessary instead of a printed value? "$(vercmp 2 3)" is fairly straightforward to use in scripts.