Ensure validate_cmd is a string and fail explicitly otherwise.

This commit is contained in:
Joshua M. Keyes 2014-11-15 16:48:18 -08:00
parent 561935586d
commit 09a01d8087

View file

@ -82,6 +82,9 @@ define concat(
validate_bool($replace)
validate_re($order, '^alpha$|^numeric$')
validate_bool($ensure_newline)
if $validate_cmd and ! is_string($validate_cmd) {
fail('$validate_cmd must be a string')
}
if $gnu {
warning('The $gnu parameter to concat is deprecated and has no effect')
}