From 4564a26c0b88d684c12c396d7ef5b0e66f686964 Mon Sep 17 00:00:00 2001 From: Karen Arutyunov Date: Wed, 13 Oct 2021 20:05:27 +0300 Subject: Add --cwd|-t option to env pseudo-builtin --- libbuild2/script/parser.hxx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'libbuild2/script/parser.hxx') diff --git a/libbuild2/script/parser.hxx b/libbuild2/script/parser.hxx index 9098b3c..2a10311 100644 --- a/libbuild2/script/parser.hxx +++ b/libbuild2/script/parser.hxx @@ -130,15 +130,16 @@ namespace build2 pre_parse_line_start (token&, token_type&, lexer_mode); // Parse the env pseudo-builtin arguments up to the program name. Return - // the program execution timeout, the list of the variables that should - // be unset ("name") and/or set ("name=value") in the command + // the program execution timeout, CWD, the list of the variables that + // should be unset ("name") and/or set ("name=value") in the command // environment, and the token/type that starts the program name. Note // that the variable unsets come first, if present. // struct parsed_env { optional timeout; - environment_vars variables; + optional cwd; + environment_vars variables; }; parsed_env -- cgit v1.1