Historical bug tracker for the Pacman package manager.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
The pacman bug tracker has moved to gitlab:
https://gitlab.archlinux.org/pacman/pacman/-/issues
This tracker remains open for interaction with historical bugs during the transition period. Any new bugs reports will be closed without further action.
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
|
DetailsIt 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.