Fabian Homborg
1dd776ec99
echo: Don't interpret and print options
...
A weird interaction between grouped short options and our weird option
parsing that puts unknown options back:
```
echo "-n foo"
```
would see the `-n`, turn off printing newlines, interpret the " " as
another grouped short option, see that there is no short option for
space and put the entire token back on the arguments pile.
So it would print "-n foo" *without a newline*.
Fix this by keeping an old state of the options around and reverting
it when putting options back.
The alternative is *probably* to forbid the " " short option in
wgetopt, then check if an option group contains it and error out, but
this should only really be a problem in `echo` because that is,
AFAICT, the only thing that puts the options back.
Fixes #7614
2021-01-09 08:50:30 +01:00
..
2019-06-25 22:31:06 +02:00
2020-10-04 12:34:38 +02:00
2020-12-11 23:09:16 +01:00
2020-09-04 16:30:13 +02:00
2020-03-09 19:46:43 +01:00
2021-01-01 11:37:25 +01:00
2020-02-08 13:30:48 +01:00
2021-01-09 08:50:30 +01:00
2019-06-26 21:19:40 +02:00
2020-03-09 19:46:43 +01:00
2019-06-25 22:31:06 +02:00
2020-02-08 09:31:49 +01:00
2020-02-08 16:23:25 -08:00
2020-12-28 23:23:06 +01:00
2020-02-26 19:15:50 +01:00
2021-01-07 11:38:52 -08:00
2019-11-02 16:48:08 -07:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2020-09-06 11:15:54 +02:00
2019-06-25 20:56:29 +02:00
2020-10-25 23:01:51 -05:00
2020-11-07 22:48:13 +01:00
2020-03-09 19:46:43 +01:00
2019-06-26 21:19:40 +02:00
2020-01-18 11:50:50 -08:00
2020-01-19 15:07:06 +01:00
2019-12-08 11:44:21 -08:00
2020-01-13 20:34:22 +01:00
2019-06-28 11:22:49 -07:00
2020-01-25 17:28:41 -08:00
2020-09-26 15:19:24 +02:00
2020-01-13 20:34:22 +01:00
2020-03-28 15:46:47 +01:00
2019-12-13 16:51:49 -08:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2020-02-14 20:28:46 +01:00
2019-06-25 22:31:06 +02:00
2019-06-25 20:56:29 +02:00
2019-08-13 22:56:31 -07:00
2019-08-13 22:56:31 -07:00
2020-09-12 19:28:01 +02:00
2020-01-08 09:10:14 +01:00
2020-01-03 14:40:28 -08:00
2020-12-11 23:09:16 +01:00
2020-12-11 23:09:16 +01:00
2020-12-29 12:48:11 +01:00
2020-02-07 20:53:20 +01:00
2020-08-17 17:40:28 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2019-06-25 20:56:29 +02:00
2020-02-14 20:09:07 +01:00
2021-01-01 21:22:52 +01:00
2020-10-06 17:40:22 +02:00
2020-04-18 16:26:54 -07:00
2020-01-25 14:06:34 +01:00
2020-09-13 19:28:14 -07:00
2020-03-15 21:01:11 +01:00
2020-06-17 20:05:48 +02:00
2020-03-09 19:46:43 +01:00
2020-04-26 08:49:01 +02:00
2020-11-27 19:33:27 +01:00
2020-02-17 11:39:53 +01:00
2020-10-06 17:40:22 +02:00
2020-12-13 17:33:34 -08:00
2020-05-18 20:48:36 +02:00
2020-03-09 19:46:43 +01:00
2020-03-09 19:46:43 +01:00
2019-06-25 20:56:29 +02:00
2020-06-13 19:53:21 +02:00
2020-12-24 08:53:08 +01:00
2020-07-14 20:55:38 +02:00
2020-12-04 18:45:08 +01:00
2020-03-09 19:46:43 +01:00
2019-12-11 16:34:20 -08:00
2020-10-04 12:24:11 +02:00
2019-07-09 10:02:50 -07:00
2020-03-09 19:46:43 +01:00
2020-10-06 17:40:22 +02:00
2020-05-16 11:58:12 +02:00
2020-03-09 19:46:43 +01:00
2019-11-10 12:36:46 -08:00
2020-06-04 18:23:32 +02:00
2020-01-25 17:28:41 -08:00
2020-03-09 19:46:43 +01:00
2020-12-06 15:39:49 +01:00
2020-03-09 19:46:43 +01:00
2020-06-07 16:23:29 +02:00
2020-03-09 19:46:43 +01:00
2020-02-23 23:42:57 +01:00
2020-12-11 21:24:33 +01:00
2020-10-04 19:41:24 +02:00
2020-03-16 21:21:10 +01:00
2020-01-17 14:53:35 +01:00
2020-02-08 09:31:49 +01:00
2019-06-25 20:56:29 +02:00
2020-09-26 14:56:03 +02:00
2020-09-26 18:39:38 -07:00
2020-02-08 09:31:49 +01:00