From 0b61b4207fb3c00860f8ef4d4b86e31cdc90c09d Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Fri, 13 Sep 2019 14:53:44 +0300 Subject: Adapt to builtins support added to command run API --- bdep/new.cli | 11 ++++++----- bdep/new.cxx | 4 +++- 2 files changed, 9 insertions(+), 6 deletions(-) (limited to 'bdep') diff --git a/bdep/new.cli b/bdep/new.cli index dbb9a96..4d7c9a9 100644 --- a/bdep/new.cli +++ b/bdep/new.cli @@ -490,11 +490,12 @@ namespace bdep source directory. The value is interpreted as a whitespace-separated, - potentially quoted command line consisting of the program optionally - followed by arguments and redirects. Specifically, a single level of - quotes (either single or double) is removed and whitespaces are not - treated as separators inside such quoted fragments. Currently only the - \cb{stdout} redirect to a file is supported. For example: + potentially quoted command line consisting of a program or a portable + \l{testscript#builtins builtin} optionally followed by arguments and + redirects. Specifically, a single level of quotes (either single or + double) is removed and whitespaces are not treated as separators inside + such quoted fragments. Currently only the \cb{stdout} redirect to a + file is supported. For example: \ $ bdep new --post-hook \"echo '.idea/ # IDE' >>.gitignore\" hello diff --git a/bdep/new.cxx b/bdep/new.cxx index 681cc18..23bc4bc 100644 --- a/bdep/new.cxx +++ b/bdep/new.cxx @@ -661,7 +661,9 @@ namespace bdep fail << "unable to execute " << what << " hook '" << cmd << "': " << e; } - catch (const process_error& e) + // Also handles process_error exception (derived from system_error). + // + catch (const system_error& e) { fail << "unable to execute " << what << " hook '" << cmd << "': " << e; -- cgit v1.1