summaryrefslogtreecommitdiff
path: root/bin/sh/expand.c
AgeCommit message (Expand)Author
2023-03-06Adjust tilde expansion as will be documented in the forthcomingkre
2021-11-22PR bin/53550kre
2021-11-10DEBUG mode changes only. NFC (NC) for any normally compiled shell.kre
2021-09-10bin: remove unnecessary lint comment CONSTCONDrillig
2020-08-01Remove a redundant set of parentheses that were added (along with akre
2020-02-13When expanding a here-doc (NXHERE - the type with an unquoted end delim)kre
2019-10-14remove masking and cast (requested by kre@)christos
2019-10-13prevent sign extension from making expression always false.christos
2019-10-08Remove a (completely harmless) duplicate assignment introduced in akre
2019-10-08Open code the validity test & copy of the character class name inkre
2019-04-10PR bin/54112kre
2019-02-27Finish the fixes from Feb 4 for handling of random data thatkre
2019-02-04Fix an old bug (very old) that was made worse in 1.128 (the "${1+$@}"kre
2018-12-03Yet another foray into the mysterious world of $@ -- this timekre
2018-11-18Rationalise (slightly) the way that expansions are processedkre
2018-07-22Part 2 of pattern matching (glob etc) fixes.kre
2018-07-22NFC: Whitespace cleanupskre
2018-07-22DEBUG mode only change (ie: no effect to any normal shell).kre
2018-07-20First pass at fixing some of the more arcane pattern matchingkre
2018-06-22When processing character classes ([:xxx:] inside []), treat a class namekre
2018-06-22When matching a char class ([[:name:]]) in a pattern (for filenamekre
2017-10-06Three fixes and a change to ~ expansionskre
2017-08-21Add support for $'...' quoting (based upon C "..." strings, with \ expansions.)kre
2017-06-30Implement PS1, PS2 and PS4 expansions (variable expansions, arithmetickre
2017-06-19Now that excessive use of STACKSTRNUL has served its purpose (well, accidentalkre
2017-06-18NFC: DEBUG mode only change. Fix botched cleanup of one TRACE().kre
2017-06-17Many internal memory management type fixes.kre
2017-06-07PR bin/52280kre
2017-06-07Set the line number before expanding args, not after. As the line_numberkre
2017-06-07A better LINENO implementation. This version deletes (well, #if 0's out)kre
2017-06-05Another arithmetic expansion recordregion() fix, this timekre
2017-06-04PR bin/52272 - fix an off-by one that broke ~ expansions.kre
2017-06-03DEBUG mode only change. Convert old trace style to new, and add some more.kre
2017-06-03NFC: Code style only. Rather than being perverse and adding thekre
2017-06-03The correct usage of recordregion() is (begin, end) not (begin, length).kre
2017-06-03Fixes to shell expand (that is, $ stuff) from FreeBSD (implementedkre
2017-05-28Arrange for set -o and $- output to be sorted, rather than morekre
2017-04-26Convert the pattern matcher from recursive to backtracking (from FreeBSD).christos
2017-03-20PR bin/52090 - fix expansion of unquoted $*kre
2017-03-20Finish support for all required $(( )) (shell arithmetic) operators,kre
2017-03-12Fix for the "${unset-var#$(cmd1)}$(cmd2)" runs the wrong command bug.kre
2016-03-31Implement the NETBSD_SHELL readonly unexportable unimportablechristos
2016-03-31After discussions with Jilles Tjoelker (FreeBSD shell) and followingchristos
2016-03-27PR bin/50993 - this is a significant rewrite of the way that herechristos
2016-03-27General KNF and source code cleanups, avoid scattering thechristos
2016-03-16PR/19832, PR/35423: Fix handling 0x81 and 0x82 characters in expansionschristos
2016-03-08PR bin/50834o: fix expansions of (unquoted) ${unset_var-} and ""$@ (from kre)christos
2016-02-27remove useless castschristos
2016-02-22PR bin/43469 - correctly handle quoting of the pattern part of ${var%pat}christos
2015-08-27PR/50179: Timo Buhrmester: sh(1) variable expansion bugchristos