about summary refs log tree commit diff
path: root/scripts/.gitignore (unfollow)
Commit message (Expand)Author
2021-06-25Remove explicit tls_handshake(3) from ircConnectJune McEnroe
2021-06-25Move setting CLOEXEC on socket to ircConnectJune McEnroe
2021-06-25FreeBSD: Enter capabilities mode if restrictedJune McEnroe
2021-06-25Keep log directory open, use mkdirat(2) and openat(2)June McEnroe
2021-06-24Encourage packagers to patch in text macrosJune McEnroe
2021-06-24Stop at previous \ when expanding macrosJune McEnroe
2021-06-21Replace SIGWINCH XXX comment with better explanationJune McEnroe
2021-06-21Register SIGWINCH handler before TLS connectKlemens Nanni
2021-06-21Handle EINTR from connect(2) gracefullyKlemens Nanni
2021-06-21Use NS and CS server aliasesJune McEnroe
2021-06-21Open log files with CLOEXECJune McEnroe
2021-06-21Open save file with CLOEXECJune McEnroe
2021-06-20Use "secure" libtls ciphersKlemens Nanni
2021-06-20OpenBSD: Only unveil used directoriesKlemens Nanni
2021-06-20Handle "\1ACTION\1" empty actionsJune McEnroe
2021-06-20Don't match actions in noticesJune McEnroe
2021-06-20Handle TLS_WANNT_POLL{IN,OUT} from tls_handshake(3)June McEnroe
2021-06-18Add -m mode option to set user modesJune McEnroe
2021-06-17Handle 338 as whois replyJune McEnroe
2021-06-17Match window substrings case-sensitivelyJune McEnroe
2021-06-17Match windows by substring in /windowJune McEnroe
2021-06-17Clean up if restricted && logEnable, pipe creationJune McEnroe
2021-06-17Add mailing list archive to READMEJune McEnroe
2021-06-17chat.tmux.conf: Make window selection hotkeys match window numbersKlemens Nanni
2021-06-15Send PINGs when server is quiet and die if no responseJune McEnroe
2021-06-15OpenBSD: Simplify promise creation after seprintf() introductionKlemens Nanni
2021-06-14OpenBSD: pledge final promises earlierKlemens Nanni
2021-06-14Treat `-T's optional argument as optionalKlemens Nanni
2021-06-14Add \com text macroJune McEnroe
2021-06-13/exec without controlling terminalKlemens Nanni
2021-06-13Exit on data directory creation errorKlemens Nanni
2021-06-13OpenBSD: no need to read data files (logs)Klemens Nanni
2021-06-12Reset formatting after realname in setnameJune McEnroe
2021-06-11Fix unknown file signature errorJune McEnroe
2021-06-11Exclusively lock save fileJune McEnroe
2021-06-11Open save file with "a+"June McEnroe
2021-06-11OpenBSD: Drop now unneeded file system access for save fileKlemens Nanni
2021-06-11Open save file once in uiLoad() and keep it open until uiSave()Klemens Nanni
2021-06-11Rename file to saveFileKlemens Nanni
2021-06-11OpenBSD: Hoist loading save file to drop filesystem read-accessKlemens Nanni
2021-06-11Match gemini URLsJune McEnroe
2021-06-10Avoid trailing comma in whois channels listsJune McEnroe
2021-06-10Move unveilAll back into mainJune McEnroe
2021-06-10Only explicitly load the default CA file on OpenBSDJune McEnroe
2021-06-10OpenBSD: Drop now unneeded promise from initial pledgeKlemens Nanni
2021-06-10OpenBSD: Remove now obsolete unveil codeKlemens Nanni
2021-06-10Hoist loading default root certificates into ircConfig()Klemens Nanni
2021-06-09Avoid creating out-of-bounds pointer when checking for seprintf truncationMichael Forney
2021-06-09Remove catfJune McEnroe
2021-06-09Replace catf with seprintfJune McEnroe
reatment 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