• R/O
  • SSH
  • HTTPS

yash: List of commits


RSS
Rev. Time Author
r3837 2018-04-10 23:45:10 magicant

Version 2.47

r3836 2018-04-10 20:01:50 magicant

Up version to 2.47

r3835 2018-04-09 00:08:04 magicant

Minimize command name comparison in typeset built-in

The command name can be identified by looking only at the first
character.

r3834 2018-04-09 00:08:03 magicant

Print global variables with "set" in function (#38181)

r3833 2018-04-01 00:00:08 magicant

sample yashrc: direnv support

r3832 2018-03-16 00:33:31 magicant

enqueue.sh: Discontinue if interrupted

r3831 2018-03-16 00:33:30 magicant

enqueue.sh: Ensure to kill itself if interrupted

The trap should be reset before the shell re-sends the interrupting
signal to itself so that the shell is intrinsically killed by the
signal.

The "exit 1" is just in case.

r3830 2018-03-10 22:57:46 magicant

Open no-clobber redirection atomically

The previous implementation of the ">" redirection with the no-clobber
option was unreliable. After the is_irregular_file call, if another
process replaced the irregular file with a regular file, the shell was
clobbering the regular file.

To open the irregular file safely, the shell needs to open without the
O_CREAT or O_TRUNC flag and then check if it is really irregular.

r3829 2018-03-09 23:40:17 magicant

Split signal-y.tst

Massive signal sending in signal-y.tst is slow on some environments.
This commit splits signal-y.tst into two files so that they can be run
in parallel (if supported by make). Note that only signal1-y.tst
requires sequential execution.

r3828 2018-03-05 00:25:50 magicant

Split kill-p.tst

Massive signal sending in kill-p.tst is slow on some environments.
This commit splits kill-p.tst into four files so that they can be run
in parallel (if supported by make). Note that only kill4-p.tst requires
sequential execution.

r3827 2018-03-04 23:13:03 magicant

Remove duplicate tests

r3826 2018-03-04 13:06:13 magicant

Restore positional parameters on dot built-in error

The dot built-in was forgetting to close the temporary variable
environment on a file-not-found error.

r3825 2018-03-04 12:02:33 magicant

Don't use errexit in completion

The errexit option is ignored while completion functions are executed.
The errreturn option should be used instead.

r3824 2018-03-04 12:02:33 magicant

Disable err-return while completion

The err-return option breaks existing completion functions that were
written before the option was introduced. For compatibility, the option
has to be disabled while completion functions are executed.

r3823 2018-03-04 12:02:32 magicant

Add errreturn option

r3822 2018-01-13 17:52:46 magicant

Suppress Valgrind false positives

for testing on Fedora 27.

r3821 2018-01-13 17:52:45 magicant

Quote xtrace

The trace is now printed in a format suitable for re-parsing as a simple
command that would result in the same expansion.

r3820 2018-01-13 17:52:44 magicant

Don't quote printed words too redundantly

This commit replaces the `quote_sq' function with the new
`quote_as_word` function, which does not quote if the argument is a
portable filename. It would render a better quoting results when used
for xtrace.

r3819 2018-01-13 12:39:01 magicant

Wrong function description

r3818 2017-11-11 15:32:24 magicant

doc: More on command substitution

r3817 2017-10-28 23:13:27 magicant

Version 2.46

r3816 2017-10-28 13:09:43 magicant

ja.po: Translate missing messages

r3815 2017-10-28 13:09:42 magicant

Update po files

r3814 2017-10-28 13:09:41 magicant

Up version to 2.46

r3813 2017-10-13 00:22:28 magicant

Test shell grammar rule 6

Shell grammar rule 6 requires that only the "in" and "do" reserved words
be recognized. Other reserved words like "for" are simply regarded as
normal words in this context. That means those words are subject to
alias substitution if they follow another substitution that ends with a
blank.

r3812 2017-10-09 13:04:41 magicant

Comment on failing test (#37560)

r3811 2017-10-08 15:30:57 magicant

Adjust alias limit indexes on line continuation

The shift_index function is now external as the shift_aliaslist_index
function.

r3810 2017-10-08 15:30:56 magicant

Substitute aliases anywhere in function definition

After alias substitution in which the alias value ends with a blank, the
next token is also subject to alias substitution. This POSIX requirement
applies anywhere including function definition commands. To support this
behavior (again), alias substitution function needs to be called from
many places in the function definition command parser, which is now
called after (rather than before) the simple command parser to eliminate
unneeded re-parsing and re-alias-substitution.

The is_literal_function_name function is introduced which decides if a
word is applicable for the function name used in a function definition
that does not begin with the "function" keyword. This replaces part of
the print_function_definition function, making the decision more correct
in terms of POSIXly-correctness and applicability of digits at the
beginning of the word.

r3809 2017-10-08 15:30:56 magicant

Substitute aliases in all locations

After alias substitution in which the alias value ends with a blank, the
next token is also subject to alias substitution. This POSIX requirement
applies anywhere including compound commands. To support this behavior
(again), alias substitution function needs to be called from many places
in compound command parsers.

POSIX-style function definition command does not (yet) support alias
substitution in all locations.

r3808 2017-10-08 15:30:55 magicant

Count alias name length in parser

The substitute_alias function counts the name length of the alias
candidate, but the parser also counts it before calling
substitute_alias. For optimization we can pass the length to the
substitution function.

Show on old repository browser