2
3
réplica de https://github.com/sammy-ette/Hilbish sincronizado 2025-08-10 02:52:03 +00:00

fix: make -i false by default and fix cmdflag comparing

Este cometimento está contido em:
sammy 2021-05-01 01:50:22 -04:00
ascendente 520fdaf728
cometimento a7d8851de0
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados
ID da chave GPG: 50EE40A2809851F5

Ver ficheiro

@ -46,12 +46,13 @@ func main() {
// loginshflag
// TODO: issue #37
_ = getopt.BoolLong("login", 'l', "Makes Hilbish act like a login shell")
interactiveflag := getopt.BoolLong("interactive", 'i', "Force Hilbish to be an interactive shell")
_ = getopt.BoolLong("interactive", 'i', "Force Hilbish to be an interactive shell")
getopt.Parse()
args := getopt.Args()
interactiveflag := getopt.Lookup('i').Seen()
if *cmdflag != "" || *interactiveflag {
if *cmdflag == "" || interactiveflag {
interactive = true
}