Assaf Gordon
668306ed86
env: add -S/--split-string option
...
Adopted from FreeBSD's env(1), useful for specifing multiple
parameters on a shebang (#!) script line, e.g:
#!/usr/bin/env -S perl -w -T
Discussed in https://lists.gnu.org/r/coreutils/2018-04/msg00011.html
* src/env.c (valid_escape_sequence,escape_char,scan_varname,
extract_varname,validate_split_str,build_argv,
parse_split_string): New functions.
(main): Process new option and call parse_split_string.
(usage): Mention new option.
* tests/misc/env-S.pl: Test new option from the command line.
* tests/misc/env-S-script.sh: Test new option from shebang scripts.
* tests/local.mk (all_tests): Add new tests.
* man/env.x (OPTIONS): Show a brief example of -S usage and point to
the full documentation for more information.
* doc/coreutils.texi (env invocation): Detail usage of -S/--split-string
option.
* NEWS: Mention new option.
2018-06-20 21:15:31 -07:00
..
2016-11-22 20:04:24 +00:00
2007-07-10 19:00:00 +02:00
2016-11-22 20:04:24 +00:00
2015-09-03 00:33:19 +01:00
2006-02-27 10:43:01 +00:00
2005-12-06 07:14:04 +00:00
2011-07-08 15:28:16 +01:00
2007-03-29 21:37:05 +02:00
2014-06-19 19:56:58 +01:00
2018-01-01 15:57:22 +00:00
2018-01-01 15:57:22 +00:00
2006-03-06 15:27:50 +00:00
1999-11-02 13:58:56 +00:00
2009-05-18 16:17:31 +01:00
2014-07-13 14:23:09 +01:00
1999-11-02 13:51:42 +00:00
1999-11-02 13:58:56 +00:00
1999-11-02 13:58:56 +00:00
2008-01-31 17:33:54 +01:00
1999-11-02 13:51:42 +00:00
2018-01-01 15:57:22 +00:00
1999-11-02 13:51:42 +00:00
2000-02-01 10:34:35 +00:00
2010-02-15 06:56:07 -07:00
2018-05-25 21:19:46 -07:00
2017-10-01 17:32:48 -07:00
2005-04-04 21:59:58 +00:00
2018-06-20 21:15:31 -07:00
2003-04-10 07:15:38 +00:00
1999-11-02 14:07:36 +00:00
2000-04-04 20:15:42 +00:00
1999-11-02 14:07:36 +00:00
1999-11-02 13:58:56 +00:00
1999-11-02 13:58:56 +00:00
2015-10-27 17:25:12 +00:00
2015-11-28 21:13:35 +01:00
2017-10-01 17:32:48 -07:00
2012-07-22 13:01:03 +01:00
1999-11-02 14:07:36 +00:00
2009-02-15 10:17:19 +01:00
2004-11-25 12:30:03 +00:00
2009-05-18 16:17:31 +01:00
2006-03-06 15:27:50 +00:00
2006-03-06 15:27:50 +00:00
2006-03-06 15:27:50 +00:00
2018-01-01 15:57:22 +00:00
1999-11-02 14:07:36 +00:00
2000-02-01 10:34:35 +00:00
2017-03-01 09:33:29 -08:00
2006-03-06 15:27:50 +00:00
2006-03-06 15:27:50 +00:00
2006-03-06 15:27:50 +00:00
2007-10-07 19:44:38 +02:00
2006-03-06 15:27:50 +00:00
2012-11-24 15:38:16 +00:00
1999-11-02 13:58:56 +00:00
1999-11-02 14:07:36 +00:00
2009-11-06 16:54:12 +00:00
2013-02-04 23:40:32 +00:00
2013-01-24 01:38:17 +00:00
1999-11-02 13:58:56 +00:00
1999-11-02 14:07:36 +00:00
1999-11-02 14:07:36 +00:00
1999-11-02 13:58:56 +00:00
1999-11-02 14:07:36 +00:00
2008-04-01 12:06:05 +02:00
1999-11-02 13:58:56 +00:00
2006-03-06 15:27:50 +00:00
2017-02-09 21:52:23 -08:00
2012-01-03 11:36:32 +00:00
2018-05-25 21:19:46 -07:00
2006-03-06 15:27:50 +00:00
2007-03-29 21:37:06 +02:00
1999-11-02 14:07:36 +00:00
2017-03-01 09:33:29 -08:00
2005-10-23 15:18:13 +00:00
2005-10-23 15:18:13 +00:00
2005-10-23 15:18:13 +00:00
2005-10-23 15:18:13 +00:00
2005-01-04 11:21:36 +00:00
2006-08-08 22:22:47 +00:00
2006-03-06 15:27:50 +00:00
2015-10-19 00:05:18 +01:00
1999-11-02 13:58:56 +00:00
2017-10-25 21:36:19 -07:00
2018-01-01 15:57:22 +00:00
1999-11-02 14:07:36 +00:00
1999-11-02 13:58:56 +00:00
2015-03-05 12:21:50 +00:00
2011-07-08 15:28:16 +01:00
2015-11-28 21:13:35 +01:00
1999-11-02 14:07:36 +00:00
2018-06-14 12:07:38 -07:00
2017-05-03 18:17:48 -07:00
2008-01-31 17:33:54 +01:00
1999-11-02 13:58:56 +00:00
1999-11-02 14:07:36 +00:00
2009-02-22 10:16:15 -07:00
1999-11-02 13:58:56 +00:00
1999-11-02 14:07:36 +00:00
2007-07-10 19:00:00 +02:00
2003-04-10 07:15:29 +00:00
2012-07-22 10:59:36 +02:00
2006-03-06 15:27:50 +00:00
2000-04-04 20:18:42 +00:00
2015-10-27 17:25:12 +00:00
2000-02-01 10:34:35 +00:00
2006-01-30 21:11:06 +00:00
1999-11-02 14:07:36 +00:00
1999-11-02 14:07:36 +00:00
1999-11-02 14:07:36 +00:00