summary refs log tree commit diff
path: root/port (follow)
Commit message (Collapse)AuthorAge
* Add musl's COPYRIGHT to wcwidthJune McEnroe2020-05-25
|
* 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.
* Rewrite port makefiles consistentlyJune McEnroe2019-07-27
|
* Fix rot13 port bin pathJune McEnroe2018-12-16
|
* Fix ports for LinuxJune McEnroe2018-11-27
|
* Un-hardcode fortune(6) path in cgramJune McEnroe2018-11-26
|
* Add cgram "port" from NetBSDJune McEnroe2018-11-26
|
* Add "ports" of some FreeBSD utilities for macOSJune McEnroe2018-11-25
$* 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