{"version":"2.1.221","anchor":"background-session-names-starting-with-survive-respawn","canonical_anchor":"background-session-names-starting-with-survive-respawn","heading":"Background session names starting with \"-\" survive respawn","tier":"notice","area":"Sessions","scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221\/e\/background-session-names-starting-with-survive-respawn","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.221","markdown":"### Background session names starting with \"-\" survive respawn\n\nBackground sessions renamed to something starting with a dash now restart correctly.\n\n**What**\n\nRenaming a background session to a value beginning with a dash no longer produces argv that the respawned process parses as a flag.\n\n**Details**\n\n- The argv rewriter now emits `--name=<value>` when the new value starts with a dash, instead of leaving the value as a separate argument.\n- Bundled short flags are collapsed when the rewrite happens, and nulled-out argv slots are compacted out of the result.\n- Covers both `--name` and `-n`.\n\n**Evidence**\n\n`zpi(c.respawnFlags, \"--name\", \"-n\", c.name)`\n\n- Area: Sessions\n- Names: `--name`, `-n`\n- Tier: You'll notice\n- Useful: 2\/5\n- Signal: 0\/5"}