a8m / a8m/envsubst

envsubst -no-unset blows up on ${FOO:=}

Aperta
#61 1 commento 2 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
Go
Stelle
907
Fork
96
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

It seems that an empty default value is treated as if a default value has not been provided.

Expected:

```console
~ $ go install github.com/a8m/envsubst/cmd/envsubst@v1.4.2
~ $ go/bin/envsubst -no-unset <<< 'value: ${FOO:=}'
value:
~ $ echo $?
0
~ $
```

Got:

```console
~ $ go install github.com/a8m/envsubst/cmd/envsubst@v1.4.2
~ $ go/bin/envsubst -no-unset <<< 'value: ${FOO:=}'
variable ${FOO} not set

~ $ echo $?
1
~ $
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.