```{index} single: config_sh; Config function ``` ```{index} single: Config::config_sh; Perl function ``` # config_sh Return the full configuration as one shell-assignment block. ## Synopsis ```perl use Config; my $sh = Config::config_sh(); ``` ## What you get back A single scalar containing one line per entry in the form `key='value'`, newline-terminated. The output is stable across calls and suitable for feeding into a shell `eval` or a line-based parser. ## Examples ```perl use Config; for my $line (split /^/, Config::config_sh()) { print $line if $line =~ /^archname=/; } ``` ## Edge cases - Entries whose value is undef render as `key=''`, matching how the tied hash reports them via `EXISTS` (true) and `FETCH` (undef). ## Differences from upstream Fully compatible with upstream.