Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add the -n option, which automatically answers "no" to the overwrite question. | johan | 2002-07-23 | 4 | -12/+35 |
| | | | | | | | PR: 7828 Suggested by: Daniel O'Connor <doconnor@gsoft.com.au> Approved by: sheldonh (mentor) MFC after: 2 weeks | ||||
* | Don't allow "||" or "&&" to be the first tokens of a command. | tjr | 2002-07-22 | 1 | -0/+1 |
| | | | | | PR: 40386 MFC after: 2 weeks | ||||
* | Implement the P1003.2 `command' builtin command, which is used to suppress | tjr | 2002-07-21 | 4 | -4/+78 |
| | | | | | | shell function and alias lookup. The -p option has been implemented, the UPE -v and -V options have not. The old `command' command has been renamed to `builtin'. | ||||
* | Document that only one of the -n and -e options may be specified for | tjr | 2002-07-20 | 1 | -1/+11 |
| | | | | | | | sh(1)'s echo(1) builtin command. PR: 32935, 40747 MFC after: 1 week | ||||
* | Remove broken and incomplete support for old releases of System V, | tjr | 2002-07-19 | 7 | -236/+1 |
| | | | | don't support system that implement getcwd(3) with a pipe to /bin/pwd. | ||||
* | Don't assume file descriptors fit in a short, use an int instead. | tjr | 2002-07-18 | 1 | -1/+1 |
| | |||||
* | Avoid using ints or shorts to store process id's, use pid_t instead. | tjr | 2002-07-18 | 2 | -22/+23 |
| | | | | | | The pgrp member of struct job was declared as a short and could not store every possible process group ID value, the rest of them were benign because pid_t happens to be an int. | ||||
* | Make the message that is printed when the foreground process is terminated | tjr | 2002-07-18 | 2 | -2/+24 |
| | | | | by a signal the same as pdksh/bash/sh before rev. 1.34. | ||||
* | Revert previous delta, which is not required with rev 1.5 of | sheldonh | 2002-07-15 | 3 | -3/+0 |
| | | | | src/contrib/gcc/c-format.c . | ||||
* | Fix a couple of typos in a comment. | keramida | 2002-07-15 | 2 | -3/+3 |
| | | | | | PR: docs/33559 Submitted by: Marc Olzheim <marcolz@ilse.nl> | ||||
* | Complain if more than one file argument is given to unlink(1) like we did | tjr | 2002-07-12 | 1 | -1/+1 |
| | | | | before I made unlink use getopt(). | ||||
* | Don't duplicate the description of the sticky bit that is already | keramida | 2002-07-12 | 1 | -7/+4 |
| | | | | | | | part of chmod(2) and sticky(8), but refer to those manpages instead. PR: docs/35605 Submitted by: Gary W. Swearingen <swear@blarg.net> | ||||
* | Fixed a printf format error that was fatal on alphas. Adding WFORMAT=0 | bde | 2002-07-11 | 1 | -2/+1 |
| | | | | | | | | to the Makefile didn't affect this bug because WFORMAT only controls higher- level format checking (not the -Wformat that is implicit in -Wall). Fixed a nearby printf format error that was benign and 3 nearby style bugs. | ||||
* | Set WFORMAT=0, because our compiler currently complains about NULL | sheldonh | 2002-07-11 | 3 | -0/+3 |
| | | | | | | | | | | | | | | | | | | arg 2 to err() and friends, and warnings are promoted to errors. This allows the following revisions to be reverted: rev 1.39 src/bin/cp/cp.c rev 1.26 src/bin/chmod/chmod.c rev 1.40 src/bin/rm/rm.c The following revisions can already be reverted, because they were already covered by WFORMAT=0: rev 1.8 src/bin/ls/lomac.c rev 1.63 src/bin/ls/ls.c rev 1.8 src/bin/ps/lomac.c rev 1.34 src/bin/rcp/rcp.c | ||||
* | Don't assume the shell's controlling terminal is attached to file descriptor | tjr | 2002-07-11 | 1 | -8/+27 |
| | | | | | | | | 2. Instead, open /dev/tty. This problem stopped commands in subshells from being executed correctly if standard error was redirected. PR: 36671 Obtained from: NetBSD (but simplified) | ||||
* | Remove support for the "old" tty driver by unifdef -UOLD_TTY_DRIVER; | tjr | 2002-07-11 | 1 | -40/+0 |
| | | | | | many other parts of the shell are no longer compatible with this, and it makes jobs.c quite cluttered with #ifdef's. | ||||
* | When growing the job table, don't relocate the jobmru pointer if it's NULL. | tjr | 2002-07-11 | 1 | -1/+2 |
| | |||||
* | err() is documented as allowing NULL for the format string but GCC isn't | dillon | 2002-07-10 | 6 | -14/+14 |
| | | | | happy about it any more so change the usage to make buildworld work again. | ||||
* | err() is documented as allowing NULL for the format string but GCC isn't | dillon | 2002-07-10 | 1 | -1/+1 |
| | | | | happy about it any more so change the useage so buildworld works again. | ||||
* | Update usage for the addition of -n in rev 1.35 of mv.c. | johan | 2002-07-09 | 2 | -3/+3 |
| | | | | Approved by: obrien, sheldonh (mentor). | ||||
* | Close file descriptors when [n]>&- and [n]<&- redirections are used. | tjr | 2002-07-09 | 1 | -1/+2 |
| | | | | | | | This was broken by rev. 1.16. PR: 40334 MFC after: 1 week | ||||
* | Print out commands with NTOFD/NFROMFD redirections that close the | tjr | 2002-07-09 | 2 | -2/+8 |
| | | | | descriptors (">&-" or similar) correctly in the jobs(1) command. | ||||
* | Bring back WFORMAT=0. | jmallett | 2002-07-08 | 1 | -0/+1 |
| | |||||
* | - Use (MAXLOGNAME - 1) where UT_NAMESIZE was used to be able to | robert | 2002-07-08 | 2 | -4/+2 |
| | | | | (-)remove the inclusions of <utmp.h>. | ||||
* | Make printval() take a 'void *' thus negating any assumptions the compiler | jmallett | 2002-07-07 | 1 | -2/+2 |
| | | | | may try to make about the alignment of the dereferenced datum. | ||||
* | The .Nm utility | charnier | 2002-07-06 | 1 | -4/+7 |
| | |||||
* | Don't depend on pollution in <limits.h> for the definition of | mike | 2002-07-05 | 1 | -0/+1 |
| | | | | <stdint.h> macros. | ||||
* | Fix a memory leak. | maxim | 2002-07-05 | 1 | -0/+1 |
| | | | | | PR: bin/40177 MFC after: 1 week | ||||
* | mdoc(7) police: a bit of tidying. | ru | 2002-07-04 | 1 | -55/+126 |
| | |||||
* | Fix some low-hanging lint-fruit: endianness and staticness warnings. | markm | 2002-07-03 | 2 | -4/+6 |
| | |||||
* | Fix type-o in last commit in preparation for MFC. | dillon | 2002-07-02 | 1 | -1/+1 |
| | |||||
* | Reimplemented bsd.nls.mk using bsd.files.mk and bsd.links.mk. | ru | 2002-07-02 | 2 | -35/+28 |
| | | | | | | | | | | | | Provided the (previously missing) dependency on source files for intermediate .msg files. Provided the default for NLSSRCDIR (defaults to .CURDIR). Slightly changed the API: NLS should now list plain locale names, without the .msg suffix. When included from bsd.prog.mk, NLSNAME defaults to PROG. | ||||
* | Remove double #include <sys/cdef.h> and __FBSDID. | dwmalone | 2002-07-01 | 1 | -2/+0 |
| | | | | | PR: 40053 Submitted by: Dan Lukes <dan@obluda.cz> | ||||
* | Put documentation of the -m option's argument in its list tag in the | tjr | 2002-06-30 | 1 | -2/+4 |
| | | | | Description section for consistency with other manpages. | ||||
* | Consistently use FBSDID | obrien | 2002-06-30 | 1 | -2/+4 |
| | |||||
* | Consistently use FBSDID | obrien | 2002-06-30 | 67 | -145/+138 |
| | |||||
* | Consistently use __FBSDID | obrien | 2002-06-30 | 34 | -95/+72 |
| | |||||
* | Avoid truncating the pathname to UNIX Domain Sockets with snprintf(), | tjr | 2002-06-29 | 1 | -2/+5 |
| | | | | | giving a more sensible warning when the (relatively meagre) sun_path limit is exceeded. | ||||
* | Check that snprintf() does not truncate the destination pathname when | tjr | 2002-06-29 | 1 | -1/+6 |
| | | | | linking into a directory. | ||||
* | Document addition of RLIMIT_VMEM support, added in rev 1.26 of miscbltin.c. | sheldonh | 2002-06-27 | 1 | -1/+3 |
| | |||||
* | Add support for RLIMIT_VMEM. The #ifdef's were already there but getopt() | dillon | 2002-06-26 | 1 | -1/+1 |
| | | | | needed to be adjusted. | ||||
* | ln(1)'s symbolic link handling conforms to IEEE Std. 1003.1-2001, note | tjr | 2002-06-25 | 1 | -1/+1 |
| | | | | this in the Standards section. | ||||
* | Correctly mark up the final command line arguments with the Ar macro for | tjr | 2002-06-25 | 1 | -2/+2 |
| | | | | the last two synopsis forms. | ||||
* | Add a description of the restrictions that red(1) imposes to users, | keramida | 2002-06-24 | 1 | -7/+24 |
| | | | | | | | | | | and a warning that this "restricted mode" can be bypassed easily by using symlinks, so that users don't depend too much on it. PR: docs/35940 Submitted by: Gary W. Swearingen <swear@blarg.net> Reviewed by: jmallett MFC after: 1 week | ||||
* | Don't try to decode old-style options if the argv[1] begins with `-' and the | sobomax | 2002-06-20 | 1 | -10/+28 |
| | | | | | | | | | | | | | second character represents some option taking an argument. This fixes problem when ps(1) is invoked for examply as follows: $ ps -Ufoobar1234 the above example results in option string being interpreted as -U foobarp1234 - note extra `p'. Reported by: Vladimir Sotnikov <vovan@kyivstar.net> MFC after: 2 weeks | ||||
* | Bogusness may have happened using a variable assignment here before, but | jmallett | 2002-06-20 | 1 | -1/+1 |
| | | | | | | | | proper parens mean that fd is always set by open(2) [in any part of C], and so we can accurately check for it returning -1, without feeling like we need to initialise fd to -1 in its declaration. In other words, fix a stylistic/bogus nit. | ||||
* | Use size_t consistently and complete some uncompleted code resulting in a | jmallett | 2002-06-20 | 2 | -3/+6 |
| | | | | | | | memory leak by assigning and freeing a variable appropriately as well as keeping track of the amount of allocated ram properly. MFC after: 1 month | ||||
* | We have a place for extern declarations of global variables in ed.h, do not | jmallett | 2002-06-20 | 2 | -3/+2 |
| | | | | use main() to do it locally. | ||||
* | Remove two unused variables. | jmallett | 2002-06-20 | 1 | -2/+0 |
| | |||||
* | Minor const cleanup. | jmallett | 2002-06-20 | 2 | -4/+4 |
| | | | | Don't discard qualifiers we don't need to discard. |