Shell: Correctly complete paths in redirections

This commit allows the Shell to complete paths in redirections.
A closing quote is added if the path is an unclosed quote.
```
$ foo > "foob<tab>
$ foo > "foobar"
```
This commit is contained in:
AnotherTest 2020-05-29 18:58:35 +04:30 committed by Andreas Kling
commit 77039e5354
Notes: sideshowbarker 2024-07-19 05:58:44 +09:00
3 changed files with 46 additions and 25 deletions

View file

@ -61,7 +61,7 @@ struct Redirection {
Type type;
int fd { -1 };
int rewire_fd { -1 };
String path {};
Token path {};
};
struct Rewiring {