Name

Replace — reset directive to a new value, or to its default

SYNOPSIS

directive_name [value]

DESCRIPTION

Cause configuration directive's value to be emptied and reset to the specified value, or to its default.

This is useful primarily for resetting configuration directives which append to existing data, so there's no other convenient way to reset them to initial values.

DIRECTIVE TYPE AND DEFAULT VALUE

Catalog directive

EXAMPLES

Example: Replacing NoCache

Replace NoCache ord special multi reconfig query

NOTES

Capitalization must be exact on each directive.

AVAILABILITY

Replace is available in Interchange versions:

4.6.0-5.9.0 (git-head)

SOURCE

Interchange 5.9.0:

Source: lib/Vend/Config.pm
Line 598

['Replace',       'replace',        ''],

Source: lib/Vend/Config.pm
Line 2944 (context shows lines 2944-2952)

sub parse_replace {
my($name, $val) = @_;

return {} unless $val;

$C->{$val} = get_catalog_default($val);
$C->{$name}->{$val} = 1;
$C->{$name};
}

AUTHORS

Interchange Development Group

SEE ALSO

AddDirective(7ic), DatabaseDefault(7ic)

DocBook! Interchange!