summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)Author
2006-09-03Bump date for previous.wiz
2006-09-02New sentence, new line. Bump date for previous.wiz
2006-09-02factor out the code that does numeric parsing into a function and check forchristos
errors properly.
2006-09-02Add description on "discard" character.itohy
Sort control characters by the Vxxx numbers in termios.h.
2006-08-25Document new -P behaviourliamjfoy
2006-08-25Only remove the file if the file can be successfullyliamjfoy
overwritten. Old code would remove the file regardless of whether the overwrite was successful or not. New behaviour: carpy: {12} touch moo ; chmod 444 moo carpy: {13} ls moo carpy: {14} rm -P moo rm: moo: -P was specified but file could not be overwritten carpy: {15} ls moo carpy: {16} ok: christos@, joerg@ & tech-userlevel@
2006-08-22Set the 'not a parameter' flag when we skip initial whitespace.dsl
Otherwise: ./sh -c 'x=" "; for a in $x; do echo a${a}a; done' is processed as a single empty parameter (instead of no parameters). Should fix the breakage I introdiced in rev 1.75 and PR/34256 and PR/34254
2006-08-22PR/34255: dieter roelants: Remove mention of -p f.christos
2006-08-21- detect buffer overflow.christos
- if we have a trailing slash, don't add another one.
2006-08-21Rework the code changes from revisions 1.69, 1.70 and 1.74 so that the codedsl
behaves correctly. As far as I can tell, "x$@y" now expands correctly, as does IFS=:; set -$IFS. Fixes PR/33472 (again) and PR/33956
2006-08-21from zafer: you can have either -k or -h but not both since it does not makechristos
sense.
2006-08-21-h and -[mgk] are mutually exclusive. Only use the last specified. [from zafer]christos
Use one variable instead of 3 flags to hold the scale, so that we don't have to reset each flag.
2006-08-212 fixes from Elad:christos
1. fix the symlink issue mentioned in: http://marc.theaimsgroup.com/?l=openbsd-tech&m=115513754417683&w=2 2. handle socket(2) versioning.
2006-08-17don't include program name when calling err()jnemeth
2006-08-15initialize dne variable in the beginning, then move the resetting ofjschauma
this variable down into the second (ie post-order) pass to make cp pass all regression tests again.
2006-08-15Avoid errors like "cp: /foo/bar/directory" exists if cp(1) is used totron
copy multiple directories and the first one doesn't exist in the target directiry but another one (e.g. the second) does.
2006-08-14Fix sentence fragment that somehow got into the long comment about rm -P.tls
2006-08-04don't call get/set progname when we are a shell built-in.christos
2006-08-04use getprogname() instead of argv[0], because some programs that execv, passchristos
the full path in argv[0] instead of just the basename. In reality, those programs should be fixed (hello gdb for example).
2006-07-23PR/34055: Kevin Massey: Date uses a fixed 1K buffer for strftimechristos
but does not check when strftime fails because the buffer is too small. Our implementation of strftime does not NUL terminat the buffer on failure (it does not have to; the results are undefined), so garbage gets printed. Use a dynamically allocated buffer instead.
2006-07-16return functionality backed out yesterday after fixing the bug I hadjschauma
introduced before. A regression test will be added to src/regress shortly.
2006-07-15The last commit introduced a bug. Revert until that's found and fixed.jschauma
2006-07-15As suggested on tech-userlevel:jschauma
"-R" claims: -R [...] Created directories have the same mode as the corre- sponding source directory, unmodified by the process' umask. Make this actually true. In addition, make '-P' (no symbolic links are followed) apply even if '-R' is not specified. This allows users to overwrite symbolic links with files and/or to copy symbolic links over a file without indirecting through the link (ie a copy of a link turns the target into a link, not a copy of the file pointed to by the source).
2006-07-01apply a little -O0 with GCC4 and vax...mrg
2006-06-27PR/33834: Bucky Katz: Crossbuild on FC5:sort doesn't handle '+' fieldchristos
specifications
2006-06-20PR/33775: YAMAMOTO Takashi: /bin/sh doesn't accept "(" before case patternschristos
2006-06-14Adapt date(1), the netsettime function, to new return value from socket(2)ginsbach
when the address family is unsupported.
2006-06-11PR/33699: Kevin Massey: use strlcpy to prevent stack overflows.christos
2006-05-20When expanding "$@" add a \0 byte after the last argument (as well as alldsl
the earlier ones) so that a separator is added before it when it is empty. This wasn't needed before a recent change that chenged the behaviour of trailing whitespace IFS characters. Fixed PR/33472
2006-05-14Don't free random memory; thanks gcc-4.christos
2006-05-14Fix two uninitialized variables with XXX: GCC.christos
2006-05-13Coverity CID 3365: Fix inverted logic!christos
2006-05-13Coverity CID 3367, 3368: Avoid NULL deref.christos
2006-05-13Coverity CID 3368: Fix memory leak.christos
2006-05-13Coverity CID 3369: Fix memory leak.christos
2006-05-13Coverity CID 3330: Initialize uninitialized variable.christos
2006-05-13Coverity CID 3331: Remove impossible test.christos
2006-05-13Coverity CID 3384: Don't close -1.christos
2006-05-11sprinkle some -fno-strict-aliasing and -Wno-pointer-sign with GCC4.mrg
2006-05-10quell GCC 4.1 uninitialised variable warnings.mrg
XXX: we should audit the tree for which old ones are no longer needed after getting the older compilers out of the tree..
2006-05-10rename exp2() to csh_exp2(). (bah, we don't even have an exp2())mrg
2006-05-04Make the change for bin/31548 to set $PWD on shell startup non-fatal ifsimonb
the current directory doesn't exist.
2006-04-27Avoid double free.christos
2006-04-24Coverity CID 2993: Fix memory leak.christos
2006-04-24Coverity CID 2994: Don't leak memory in the perm case.christos
2006-04-24Coverity CID 2995: Fix memory leak.christos
2006-04-24It's "its."snj
2006-04-24It's "its."snj
2006-04-18PR/33281: Martin J. Laubach: Prevent core-dump on "echo abc | { }". bashchristos
prints and error and ksh prints nothing. We go the ksh way.
2006-04-16PR/22995: Sergey Svishchev: If we are cd'ing around and we have directorieschristos
with relative paths, convert the directories to absolute paths, so that restoring timestamps does not fail.