• R/O
  • SSH

yash: List of commits

Rev. Time Author
r3910 2018-11-10 17:48:17 magicant

Pass test of dot with echo disabled

In a configuration where the echo built-in is disabled, a test case for
the dot built-in was failing because the echo built-in was not found in
the dot script after $PATH had been modified.

$PATH is no longer modified, instead the dot script is renamed so that
it is much unlikely for the name to be found in unmodified $PATH.

r3909 2018-11-10 17:10:19 magicant

Pass test of kill with help disabled

In a configuration where the help built-in is disabled, the test case
for the --help option of the kill built-in was failing.

r3908 2018-10-21 22:25:40 magicant

Eliminate occasional test failure in wait-y

r3907 2018-10-21 22:25:39 magicant

Pass arith-y Valgrind tests

Some recently added tests in arith-y.tst were failing when tested with
Valgrind because of program name mismatch. This commit hides the program
name by wrapping commands with the eval built-in.

r3906 2018-10-21 00:22:22 magicant

completion/git-grep: Don't complete --threads option argument

The --threads option requires a number. It is pointless to complete

r3905 2018-10-21 00:13:35 magicant

completion/git-grep: Support Git 2.19.1

r3904 2018-10-20 23:38:48 magicant

Test POSIX mode behaviors

Some tests have been missing that check the behaviors of the
posixly-correct option. This commit adds them.

r3903 2018-10-14 20:45:44 magicant

Document all POSIXly-correct behavior

All the effects of the POSIXly-correct mode are now documented in
posix.txt and the built-in command manual pages.

r3902 2018-10-06 15:20:01 magicant

Reject keywords after redirection (#38617)

r3901 2018-10-06 15:20:00 magicant

More test on alias substitution of esac

r3900 2018-09-30 23:05:09 magicant

Reject IO_NUMBER as redirection operand (#38594)

POSIX requires the redirection operand to be a WORD, not IO_NUMBER.

Such an IO_NUMBER is rejected only in the POSIXly-correct mode because
it does not actually make sense to reject it. It can only be parsed as a
redirection operand anyway.

r3899 2018-09-30 02:20:06 magicant

Reject invalid semicolon after alias substitution

This is a fix-up for r3710 and r3809. Invalid semicolons have been
rejected since r3710, but r3809 failed to consider the case where alias
substitution occurs after a newline.

r3898 2018-09-30 02:20:05 magicant

Don't alias-substitute "do" in for command (#38575)

r3897 2018-09-24 23:51:59 magicant

More strict tests of alias substitution

r3896 2018-09-24 01:29:22 magicant

tests/builtins-y: Avoid race condition

The bg built-in fails if the specified job has already terminated. For
the bg built-in that is expected to succeed, we need to ensure the job
has not yet terminated.

r3895 2018-09-24 01:29:21 magicant

doc: Fix broken macro markup

We should have a word separator before a link:...[...] macro so that the
macro is recognized as expected.

r3894 2018-09-24 01:29:19 magicant

doc/builtin: Link to list of built-ins

r3893 2018-09-24 01:29:18 magicant

doc/posix: Remove outdated description

Since r3620 unclosed here-document contents are always rejected, not
only in the POSIXly-correct mode.

r3892 2018-09-23 17:00:19 magicant

parser: Reorder result construction

Allocate the results later for locality.

r3891 2018-09-23 17:00:18 magicant

parser: Clear reparse flag earlier

Now the `reparse' flag is true only while stack unwinding is begin done.
The `reparse' flag is cleared just after stack unwinding ends.

r3890 2018-09-23 13:37:31 magicant

Remove token_based_parser branch

r3889 2018-09-23 13:36:18 magicant

Merge token_based_parser branch

This commit merges a massive refactoring in the parser.

The parser is now implemented in a token-based algorithm. The entire
parser has been split into the lexical tokenizer and the LL(1) syntax
parser. With the new parser architecture, it would be possible to
implement a parser for the [[ command.

r3888 2018-09-23 12:14:55 magicant

Test alias substitution followed by operator character

r3887 2018-09-23 11:45:44 magicant

po: Update error messages and translations

r3886 2018-09-23 11:45:43 magicant

doc/fgrammar: Rewrite formal syntax

r3885 2018-09-19 00:55:28 magicant

Reorder parser functions

Now functions are arranged in sections.

r3884 2018-09-19 00:55:26 magicant

Refactor successive word parser

The simple command is now parsed by the new parse_simple_command_tokens
function. Successive words are now parsed by the new parse_words
function. The parse_assignments_and_redirects, parse_words_and_redirects
and parse_words_to_paren functions are removed in favor of them.

The is_command_delimiter_tokentype function is removed as it is no
longer used.

r3883 2018-09-19 00:55:25 magicant

Remove unused functions in parser.c

The parse_word_to function is renamed to parse_word, which is one of the
functions removed in this commit.

r3882 2018-09-19 00:55:24 magicant

Optimize candidate name check in alias substitution

This refactoring commit moves the
calls out of the substitute_alias_range function. These calls are
omitted in the psubstitute_alias function since the token has already
been delimited and categorized.

The psubstitute_alias function no longer uses the count_name_length
function to find the end of the token. Now the token passed from
psubstitute_alias to substitute_alias_range can contain non-alias-name
characters, but such a token will not be substituted anyway since no
alias can be defined with such a name.

The is_alias_name_char function is now defined with an internal linkage.

r3881 2018-09-19 00:55:23 magicant

Simplify count_name_length function

Show on old repository browser