summary refs log tree commit diff
path: root/bin (follow)
Commit message (Expand)AuthorAge
...
* Check in dash autogen files for realJune McEnroe2021-04-25
* Copy automake filesJune McEnroe2021-04-25
* Revert "Check in dash autogen files"June McEnroe2021-04-25
* Rearrange Makefile once more once more once moreJune McEnroe2021-04-18
* Add -R reverse typerJune McEnroe2021-04-18
* Flip card renderingJune McEnroe2021-04-18
* Add freecellJune McEnroe2021-04-17
* Check in dash autogen filesJune McEnroe2021-04-04
* Add typer -P and -c to connect to pounceJune McEnroe2021-03-23
* Add typer botJune McEnroe2021-03-23
* Add -q flag to everJune McEnroe2021-02-24
* Add asciinema to supJune McEnroe2021-02-21
* Add Liberapay to supJune McEnroe2021-02-21
* Fix (hopefully) matching shell reserved wordsJune McEnroe2021-02-19
* Add bugzilla support to supJune McEnroe2021-02-17
* Just use pbcopy in upJune McEnroe2021-02-17
* Use curl --url for URL from emailJune McEnroe2021-02-17
* Add tildenews support to supJune McEnroe2021-02-16
* Add sup for setting single-use passwordsJune McEnroe2021-02-16
* Add missing %U for RFCs in bibsortJune McEnroe2021-02-16
* Add install targets to binJune McEnroe2021-02-10
* Use flags for pbd client behaviourJune McEnroe2021-02-09
* Use xsel in up and add it do install.shJune McEnroe2021-02-08
* Use scrot for up -s if no screencaptureJune McEnroe2021-02-07
* Add xterm output to schemeJune McEnroe2021-02-06
* Warn twice about stopped jobsJune McEnroe2021-02-04
* Use int when checking for EOFJune McEnroe2021-01-29
* Use First state to match keyword at beginning of lineJune McEnroe2021-01-26
* Generate tags for sh files in mtagsJune McEnroe2021-01-20
* Add messy sh lexerJune McEnroe2021-01-20
* Avoid matching ':' in make tagsJune McEnroe2021-01-20
* Prefer tag matches not preceded by [[:alnum:]]June McEnroe2021-01-19
* Escape \ and / in mtags search patternsJune McEnroe2021-01-19
* Add mtags to generate tags for make and mdocJune McEnroe2021-01-19
* Map tags to IDs using only [[:alnum:]-._]June McEnroe2021-01-19
* Don't use a pager if reading standard inputJune McEnroe2021-01-19
* Support BSD make syntax and match *.amJune McEnroe2021-01-19
* Match tab following escaped newline in make assignmentsJune McEnroe2021-01-19
* Allow matching lexers using first input lineJune McEnroe2021-01-18
* Automatically pipe hilex ANSI output to PAGERJune McEnroe2021-01-15
* Simplyify htagml match outputJune McEnroe2021-01-15
* Output htagml -x from the main loopJune McEnroe2021-01-15
* Add dirent.h to c.sh includesJune McEnroe2021-01-14
* Clean up html.shJune McEnroe2021-01-13
* Remove ttpreJune McEnroe2021-01-13
* Remove hiJune McEnroe2021-01-13
* Match \ before newline in string as EscapeJune McEnroe2021-01-13
* Remove -t flag from ctags commandsJune McEnroe2021-01-13
* Match strftime format specifiersJune McEnroe2021-01-13
* Try to return make substitutions as single tokensJune McEnroe2021-01-13
has a bigger effect than merely selecting whether to use > $IFS or whether to only split on null bytes: in ifsbreakup(), nulonly > also causes string termination to be suppressed. That's correct: that > special treatment is required to preserve empty fields in "$@" > expansion. But it should *only* be used when $@ is quoted: ifsbreakup() > takes nulonly from the last IFS region, even if it's empty, so having an > additional zero-length region with nulonly enabled causes confusion. > > Passing quoted by value to varvalue() and not attempting to modify it > should therefore, and in my quick testing does, also work to fix the > original $@ bug. You're right. The proper fix to this is to ensure that nulonly is not set in varvalue for $*. It should only be set for $@ when it's inside double quotes. In fact there is another bug while we're playing with $@/$*. When IFS is set to a non-whitespace character such as :, $* outside quotes won't remove empty fields as it should. This patch fixes both problems. Reported-by: Martijn Dekker <martijn@inlv.org> Suggested-by: Harald van Dijk <harald@gigawatt.nl> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> 2018-04-02parser: Allow newlines within parameter substitutionHerbert Xu On Fri, Mar 16, 2018 at 11:27:22AM +0800, Herbert Xu wrote: > On Thu, Mar 15, 2018 at 10:49:15PM +0100, Harald van Dijk wrote: > > > > Okay, it can be trivially modified to something that does work in other > > shells (even if it were actually executed), but gets rejected at parse time > > by dash: > > > > if false; then > > : ${$+ > > } > > fi > > That's just a bug in dash's parser with ${} in general, because > it bombs out without the if clause too: > > : ${$+ > } This patch fixes the parsing of newlines with parameter substitution. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> 2018-04-02expand: Fix bugs with words connected to the right of $@Herbert Xu On Sun, Mar 04, 2018 at 12:44:59PM +0100, Harald van Dijk wrote: > > command: set -- a ""; space=" "; printf "<%s>" "$@"$space > bash: <a><> > dash 0.5.8: <a>< > > dash 0.5.9.1: <a>< > > dash patched: <a><> This is actually composed of two bugs. First of all our tracking of quotemark is wrong so anything after "$@" becomes quoted. Once we fix that then the problem is that the first space character after "$@" is not recognised as an IFS. This patch fixes both. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> 2018-03-25Revert "[BUILTIN] Remove unnecessary restoration of format string in printf"Herbert Xu This reverts commit 7bb413255368e94395237d789f522891093c5774. The commit breaks printf with more than argument. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> 2018-03-22parser: Fix backquote support in here-document EOF markHerbert Xu