summary refs log tree commit diff
Commit message (Collapse)AuthorAge
* Add c scriptJune McEnroe2020-05-31
|
* Update mdoc source URLsJune McEnroe2020-05-31
|
* Remove unfinished PSF fontsJune McEnroe2020-05-26
|
* Add musl's COPYRIGHT to wcwidthJune McEnroe2020-05-25
|
* Add The Hundred Thousand KingdomsJune McEnroe2020-05-22
|
* Add RFC man-like to planJune McEnroe2020-05-20
|
* Add hi rule for sh arithmetic expansionJune McEnroe2020-05-14
| | | | | Shell highlighting is hopeless anyway but this makes it slightly less obviously broken.
* Remove gpg symlink from NetBSD installJune McEnroe2020-05-13
|
* Add AutonomousJune McEnroe2020-05-11
| | | | Why do the bad guys get a happy ending though?
* Move keyboard layout into a .bundleJune McEnroe2020-05-08
| | | | | Based on Workman.bundle. This seems to make it stick, though I don't want to speak too soon.
* Remove mkshJune McEnroe2020-05-07
|
* Emulate 1sh prompts in bashJune McEnroe2020-05-07
|
* Update nvim MANPAGERJune McEnroe2020-05-07
| | | | | Not sure when this was added. Has the advantage of working properly in more versions of man(1) it seems.
* Post "casual update"June McEnroe2020-05-06
|
* Remove bman functionJune McEnroe2020-05-06
| | | | I've got exman now!
* Add plansJune McEnroe2020-05-05
|
* Add git-password script to get a password from git-credentialJune McEnroe2020-05-04
|
* Add The Rosewater InsurrectionJune McEnroe2020-05-03
| | | | Finally able to read again. But not a great sequel.
* Add endorsement to git.causal.agencyJune McEnroe2020-04-29
|
* Replace wcwidth implementation with that of muslJune McEnroe2020-04-25
| | | | Imported from musl 1.2.0 sources.
* Add Markus Kuhn's wcwidth implementationJune McEnroe2020-04-21
| | | | | | | | And wcfix script for macOS, based on <https://blog.nytsoi.net/2015/05/04/emoji-support-for-weechat> to fix some emoji display in catgirl. Somehow this code from 2007 against Unicode 5.0 does a better job than whatever the hell macOS Mojave's libc is doing.
* Use . as ${LDLIBS.$@} separatorJune McEnroe2020-04-20
|
* Add CREEP UJune McEnroe2020-04-14
|
* Add DONT COME TO THE WOODSJune McEnroe2020-04-14
|
* Include <content src> in feedJune McEnroe2020-04-04
| | | | Maybe this gets feed readers to embed the content?
* Set publish date in feed from .DdJune McEnroe2020-04-04
|
* Update cgit setup post with git-http-backendJune McEnroe2020-04-01
|
* Add np scriptJune McEnroe2020-03-31
| | | | I'm bringing this back.
* Teach hi how to underline in IRCJune McEnroe2020-03-30
|
* Highlight diff lines without lading space as KeywordJune McEnroe2020-03-30
|
* Remove .psqlrcJune McEnroe2020-03-27
| | | | I haven't used psql in years probably.
* Only cd in .profile if /usr/home existsJune McEnroe2020-03-27
|
* Remove gpg configurationJune McEnroe2020-03-27
|
* Move .kshrc to .mkshrcJune McEnroe2020-03-27
| | | | | I should really just get rid of this since I don't use mksh anymore, but it's still around on some Linux systems I guess.
* Upgrade neovim to 0.4.3 on macOSJune McEnroe2020-03-24
|
* Add The Ten Thousand Doors of JanuaryJune McEnroe2020-03-19
| | | | Uh oh, the library is closed.
* Add HISTFILE history savingJune McEnroe2020-03-09
|
* Source .editrc before applying -v or -eJune McEnroe2020-03-09
| | | | | Otherwise a bind -v in .editrc will take precedence and overwrite the ^I binding for sh-complete.
* Add \? exit status prompt expansionJune McEnroe2020-03-09
|
* Shorten $HOME to ~ in prompt expansionJune McEnroe2020-03-09
|
* Add PS0 pre-prompt stringJune McEnroe2020-03-09
|
* Add RPS1 and RPS2 right promptsJune McEnroe2020-03-09
|
* Fix copyright and rcsidJune McEnroe2020-03-09
|
* Replace strchrnul with strchrJune McEnroe2020-03-09
|
* Replace eaccess with faccessatJune McEnroe2020-03-09
|
* Replace st_mtim with st_mtimespecJune McEnroe2020-03-09
|
* Replace sys_nsig with NSIGJune McEnroe2020-03-09
|
* Replace 1sh MakefileJune McEnroe2020-03-09
|
* Rename manual pages to 1shJune McEnroe2020-03-09
|
* Move bltin out of subdirectoryJune McEnroe2020-03-09
|
en 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