Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Don't use absolute paths for gawk and cpp. | Kaz Kylheku | 2022-03-18 | 2 | -5/+6 |
| | |||||
* | Manual page. | Kaz Kylheku | 2022-03-18 | 1 | -0/+186 |
| | |||||
* | Ensure we pass -- before non-option arguments. | Kaz Kylheku | 2022-03-18 | 1 | -2/+2 |
| | | | | | | | | This is necessary even though our option processing has itself recognized the end of options. The reason is that we do not pass through -- to the list of awk options. (We cannot, because we add options after the awk options like this: $awk $awk_opts -f $tmp_file"). | ||||
* | Fix broken options quoting system. | Kaz Kylheku | 2022-03-18 | 2 | -11/+15 |
| | | | | | | Unquoting can't just be done with an interpolation into the command line; we have to construct an entire command as shell syntax and eval the whole thing. | ||||
* | Rename shell_escape and syntax functions. | Kaz Kylheku | 2022-03-18 | 1 | -12/+12 |
| | |||||
* | Missing quoting in --prepro-only case. | Kaz Kylheku | 2022-03-18 | 1 | -1/+1 |
| | |||||
* | Protect against sed mistaking argument as option. | Kaz Kylheku | 2022-03-18 | 1 | -1/+1 |
| | |||||
* | Test -f option. | Kaz Kylheku | 2022-03-18 | 3 | -1/+14 |
| | | | | | | | | | Bugfix: because the preprocessed version of the file is in a temporary directory, #include "..." looks for files in that directory. We must tell the preprocessor to look for include files in the original directory. In the case when the awk script comes from the command line, we already took care of this by pointing the preprocessor to $(pwd). | ||||
* | Handle quoting properly. | Kaz Kylheku | 2022-03-18 | 2 | -5/+20 |
| | | | | | | | | The problem is that if $var holds escaped syntax, we cannot just use it as command $var; the quotes become part of the argument. We must get the shell to process the quoted syntax, which requires eval. For this we define a function which lets us do command $(syntax "$var"). | ||||
* | Add --prepro-only option. | Kaz Kylheku | 2022-03-18 | 2 | -5/+19 |
| | |||||
* | Define __posix__ if -P or --posix option used. | Kaz Kylheku | 2022-03-18 | 2 | -0/+13 |
| | |||||
* | Define __bignum__ if -M or --bignum option used. | Kaz Kylheku | 2022-03-18 | 2 | -0/+13 |
| | |||||
* | Add __gawk__ predefined preprocessor symbol. | Kaz Kylheku | 2022-03-18 | 2 | -3/+13 |
| | |||||
* | Fix missing: pass -I to preprocessor. | Kaz Kylheku | 2022-03-18 | 3 | -1/+17 |
| | |||||
* | Basic preprocessor test. | Kaz Kylheku | 2022-03-18 | 1 | -0/+12 |
| | |||||
* | Add runtests script. | Kaz Kylheku | 2022-03-18 | 1 | -0/+2 |
| | |||||
* | More invocation error test cases. | Kaz Kylheku | 2022-03-18 | 1 | -0/+45 |
| | |||||
* | Check that -f without argument fails. | Kaz Kylheku | 2022-03-18 | 2 | -3/+17 |
| | |||||
* | Allow gawk -M option. | Kaz Kylheku | 2022-03-18 | 2 | -1/+5 |
| | |||||
* | Start test case implementation. | Kaz Kylheku | 2022-03-18 | 2 | -0/+28 |
| | |||||
* | Remove hash-bang lines from awk code. | Kaz Kylheku | 2022-03-18 | 1 | -2/+5 |
| | |||||
* | First working version. | Kaz Kylheku | 2022-03-17 | 1 | -0/+118 |
| | |||||
* | NIL | Kaz Kylheku | 2022-03-17 | 0 | -0/+0 |