1 |
commit: 694e519885ecabfe07970e26a73789635b2c5178 |
2 |
Author: Petteri Räty <petsku <AT> petteriraty <DOT> eu> |
3 |
AuthorDate: Fri Apr 8 13:08:39 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Apr 8 13:08:39 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/libbash.git;a=commit;h=694e5198 |
7 |
|
8 |
Small fixes for grammar warnings |
9 |
|
10 |
res_word_str could be removed as an alternative because fname already |
11 |
includes it and the redirect branch was folded to the common child. |
12 |
|
13 |
--- |
14 |
bashast/bashast.g | 5 ++--- |
15 |
1 files changed, 2 insertions(+), 3 deletions(-) |
16 |
|
17 |
diff --git a/bashast/bashast.g b/bashast/bashast.g |
18 |
index 82d1da2..551ae4e 100644 |
19 |
--- a/bashast/bashast.g |
20 |
+++ b/bashast/bashast.g |
21 |
@@ -114,16 +114,15 @@ arg |
22 |
: brace_expansion |
23 |
| var_ref |
24 |
| fname |
25 |
- | res_word_str -> ^(STRING res_word_str) |
26 |
| command_sub |
27 |
| var_ref; |
28 |
redirect: BLANK!* here_string_op^ BLANK!* fname |
29 |
| BLANK!* here_doc_op^ BLANK!* fname EOL! heredoc |
30 |
- | BLANK* redir_op BLANK* DIGIT MINUS? -> ^(REDIR redir_op DIGIT MINUS?) |
31 |
| BLANK* redir_op BLANK* redir_dest -> ^(REDIR redir_op redir_dest) |
32 |
| BLANK!* process_substitution; |
33 |
redir_dest |
34 |
- : fname //path to a file |
35 |
+ : DIGIT MINUS? |
36 |
+ | fname //path to a file |
37 |
| file_desc_as_file; //handles file descriptors0 |
38 |
file_desc_as_file |
39 |
: AMP DIGIT -> FILE_DESCRIPTOR[$DIGIT] |