Verified from the command line:
fgimenez@fgimenez-Standard-PC-i440FX-PIIX-1996:~$ for value in yes no 0 1 unicorn; do > SNAP_CONFINE_DEBUG=$value ubuntu-core-launcher blah 2>debug.$value || : > done fgimenez@fgimenez-Standard-PC-i440FX-PIIX-1996:~$ cat debug.yes DEBUG: shifting arguments by one Usage: ubuntu-core-launcher <security-tag> <binary> fgimenez@fgimenez-Standard-PC-i440FX-PIIX-1996:~$ cat debug.1 DEBUG: shifting arguments by one Usage: ubuntu-core-launcher <security-tag> <binary> fgimenez@fgimenez-Standard-PC-i440FX-PIIX-1996:~$ cat debug.no Usage: ubuntu-core-launcher <security-tag> <binary> fgimenez@fgimenez-Standard-PC-i440FX-PIIX-1996:~$ cat debug.0 Usage: ubuntu-core-launcher <security-tag> <binary> fgimenez@fgimenez-Standard-PC-i440FX-PIIX-1996:~$ cat debug.unicorn WARNING: unrecognized value of environment variable SNAP_CONFINE_DEBUG (expected yes/no or 1/0) Usage: ubuntu-core-launcher <security-tag> <binary>. errmsg: Invalid argument
Verified from the command line:
fgimenez@ fgimenez- Standard- PC-i440FX- PIIX-1996: ~$ for value in yes no 0 1 unicorn; do DEBUG=$ value ubuntu- core-launcher blah 2>debug.$value || : fgimenez- Standard- PC-i440FX- PIIX-1996: ~$ cat debug.yes core-launcher <security-tag> <binary> fgimenez- Standard- PC-i440FX- PIIX-1996: ~$ cat debug.1 core-launcher <security-tag> <binary> fgimenez- Standard- PC-i440FX- PIIX-1996: ~$ cat debug.no core-launcher <security-tag> <binary> fgimenez- Standard- PC-i440FX- PIIX-1996: ~$ cat debug.0 core-launcher <security-tag> <binary> fgimenez- Standard- PC-i440FX- PIIX-1996: ~$ cat debug.unicorn core-launcher <security-tag> <binary>. errmsg: Invalid argument
> SNAP_CONFINE_
> done
fgimenez@
DEBUG: shifting arguments by one
Usage: ubuntu-
fgimenez@
DEBUG: shifting arguments by one
Usage: ubuntu-
fgimenez@
Usage: ubuntu-
fgimenez@
Usage: ubuntu-
fgimenez@
WARNING: unrecognized value of environment variable SNAP_CONFINE_DEBUG (expected yes/no or 1/0)
Usage: ubuntu-