tianon / gosu

Simple Go-based setuid+setgid+setgroups+exec
Apache License 2.0
4.69k stars 312 forks source link

gosu --version return value is 1 #54

Closed jakub-bochenski closed 5 years ago

jakub-bochenski commented 5 years ago
$ gosu --version; echo $?
Usage: gosu user-spec command [args]
   ie: gosu tianon bash
       gosu nobody:root bash -c 'whoami && id'
       gosu 1000:1 id

gosu version: 1.10 (go1.7.4 on linux/amd64; gc)
     license: GPL-3 (full text at https://github.com/tianon/gosu)

1

This is rather weird, also it makes the instructions at https://github.com/tianon/gosu/blob/master/INSTALL.md#from-alpine-37 fail

tianon commented 5 years ago

That's because --version wasn't added until 1.11.

jakub-bochenski commented 5 years ago

Sorry about that, I didn't notice I'm on 1.10

EDIT: BTW fastest response I ever got in OSS :)