{"version":"2.1.336","anchor":"ld-library-path-sanitising-in-shells-linuxwsl","canonical_anchor":"ld-library-path-sanitising-in-shells-linuxwsl","heading":"Empty or relative library-path entries can be dropped from shells on Linux and WSL","tier":"soon","area":"Shell","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336\/e\/ld-library-path-sanitising-in-shells-linuxwsl","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.336","markdown":"### Empty or relative library-path entries can be dropped from shells on Linux and WSL\n\nOn Linux and WSL, Claude Code can leave empty or relative LD_LIBRARY_PATH entries out of the shells it starts\n\n**Unclear.** Whether this filtering is active depends on a server-controlled setting whose default is not known.\n\n**What**\n\nOn Linux and WSL (Windows Subsystem for Linux), Claude Code can now remove empty or relative entries from `LD_LIBRARY_PATH` in the shells it starts to run commands. `LD_LIBRARY_PATH` is an environment variable listing folders where programs look for shared libraries. When entries are removed, Claude Code logs a line saying how many it left out. This behaviour is controlled by a setting Claude Code reads from its server.\n\n**Why**\n\nAn empty or relative entry makes programs search the current folder for libraries, which a malicious file in a project could exploit. Leaving those entries out closes that path. If a command you run depends on a relative library path, expect it to behave differently.\n\n- Area: Shell\n- Tier: Nothing to try yet\n- Useful: 2\/5\n- Signal: 3\/5\n- Scope: individual\n- Heads-up: no\n- Present in the build but not switched on"}