summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* mdoc(7) police: fixed the document date.ru2002-08-191-1/+1
| | | | Submitted by: iedowse
* Remove local prototypes for main().jmallett2002-08-191-1/+0
|
* Avoid accessing the current job's process table in the child part oftjr2002-08-181-3/+5
| | | | | | forkshell() after it has been freed. This caused mysterious behaviour when anything but the first command in a pipeline tried to access the terminal when the `junk' malloc() option was enabled (which is the default).
* Show job control ID, command text, etc. when foreground processes aretjr2002-08-171-7/+2
| | | | | | suspended. This is a followup to rev. 1.51. MFC after: 1 week
* Bump document date for the -n option.johan2002-08-161-1/+1
| | | | Approved by: sheldonh (mentor)
* o Backout rev. 1.40 and rev. 1.49.maxim2002-08-151-36/+34
| | | | | | | | o Add argv[] boudary check. PR: bin/40117 Reviewed by: silence on -audit MFC after: 2 months
* Claim conformance to 1003.2-1992 instead of 1003.1-2001 due to doubtstjr2002-08-121-1/+1
| | | | | | | raised by Lukas Ertl over symbolic link handling. PR: 41576 MFC after: 1 week
* Fix typos; each file has at least one s/seperat/separat/schweikh2002-08-111-1/+1
| | | | | | | | | | (I skipped those in contrib/, gnu/ and crypto/) While I was at it, fixed a lot more found by ispell that I could identify with certainty to be errors. All of these were in comments or text, not in actual code. Suggested by: bde MFC after: 3 days
* Allow redirections by themselves between "&&" and "||" operators.tjr2002-08-111-3/+2
| | | | | | | For example, >/dev/null && echo foo Pointed out by: FUJISHIMA Satsuki MFC after: 1 week
* - Introduce a new struct xvfsconf, the userland version of struct vfsconf.mux2002-08-101-12/+21
| | | | | | | | | | | | | | | | | | | | | | | - Make getvfsbyname() take a struct xvfsconf *. - Convert several consumers of getvfsbyname() to use struct xvfsconf. - Correct the getvfsbyname.3 manpage. - Create a new vfs.conflist sysctl to dump all the struct xvfsconf in the kernel, and rewrite getvfsbyname() to use this instead of the weird existing API. - Convert some {set,get,end}vfsent() consumers to use the new vfs.conflist sysctl. - Convert a vfsload() call in nfsiod.c to kldload() and remove the useless vfsisloadable() and endvfsent() calls. - Add a warning printf() in vfs_sysctl() to tell people they are using an old userland. After these changes, it's possible to modify struct vfsconf without breaking the binary compatibility. Please note that these changes don't break this compatibility either. When bp will have updated mount_smbfs(8) with the patch I sent him, there will be no more consumers of the {set,get,end}vfsent(), vfsisloadable() and vfsload() API, and I will promptly delete it.
* IPv6 support for rcp.ume2002-08-092-22/+42
| | | | | | You cannot specify a raw IPv6 address for now. MFC after: 1 week
* mdoc(7) police: tidying.ru2002-08-091-36/+9
|
* mdoc(7) police: whitespace nits.ru2002-08-091-2/+3
|
* mdoc(7) police: tidy up, bump document date on behalf of the -n option.ru2002-08-091-9/+9
|
* mdoc(7) police: grammar.ru2002-08-091-1/+1
|
* mdoc(7) police: kill hard sentence breaks and one double space.ru2002-08-091-5/+9
|
* Allow "-v -v" to mean very verbose.obrien2002-08-042-4/+23
| | | | | | Reviewed by: freebsd-standards PR: 40709 Submitted by: Edward Brocklesby <nighthawk@unrealircd.com>, johan
* Remove the last reference to NOUUCP - we don't have UUCP in the basemarkm2002-08-021-1/+1
| | | | system.
* Fix an easy WARNS.markm2002-07-311-1/+1
|
* Fix some easy WARNS.markm2002-07-313-12/+12
|
* Give lint a small bit of help.markm2002-07-311-0/+2
|
* Make test check the tv_nsec part of a struct stat when comparingdwmalone2002-07-271-8/+10
| | | | | | | | | the mtimes of a file. (This is probably only useful if you have vfs.timestamp_precision set to something nonzero). PR: 39163 Submitted by: Hal Burch <hburch@lumeta.com> MFC after: 2 weeks
* Add a -P/-o physical option which behaves similarly to bash/ksh's optionstjr2002-07-253-4/+17
| | | | | | | by the same name. This option makes the cd and pwd builtins behave physically (as opposed to logically) by default. Submitted by: fanf
* Set opterr to zero to avoid duplicate warnings from getopt(3) for unknowntjr2002-07-255-2/+6
| | | | options.
* Use PATH_MAX instead of a local guess at it, which happened to be incorrect.tjr2002-07-251-4/+3
| | | | Suggested by: fanf
* pwdcmd()'s argc and argv arguments are no longer unused, remove __unused.tjr2002-07-251-1/+1
| | | | Pointed out by: fanf
* Remove WARNS and WFORMAT overrides.mp2002-07-241-2/+0
|
* Avoid calling el_resize() from a signal handler, even though libedittjr2002-07-243-2/+11
| | | | | | | itself does that if you set EL_SIGNAL. Instead, set a flag and check it before calling el_gets(). This is safer, but slower to respond to changes. Pointed out by: mp
* Catch SIGWINCH in interactive shells and call el_resize() to updatetjr2002-07-231-0/+15
| | | | libedit's idea of the window size.
* Call el_source() to read the contents of .editrc when line editing is enabled.tjr2002-07-231-0/+1
| | | | | Obtained from: NetBSD MFC after: 2 weeks
* Add a `bind' builtin command, which is simply a wrapper around libedit'stjr2002-07-234-0/+24
| | | | | | | builtin command of the same name. This allows the key bindings for the shell's line editor to be changed. MFC after: 2 weeks
* Add the -n option, which automatically answers "no" to the overwrite question.johan2002-07-234-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.tjr2002-07-221-0/+1
| | | | | PR: 40386 MFC after: 2 weeks
* Implement the P1003.2 `command' builtin command, which is used to suppresstjr2002-07-214-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 fortjr2002-07-201-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,tjr2002-07-197-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.tjr2002-07-181-1/+1
|
* Avoid using ints or shorts to store process id's, use pid_t instead.tjr2002-07-182-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 terminatedtjr2002-07-182-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 ofsheldonh2002-07-153-3/+0
| | | | src/contrib/gcc/c-format.c .
* Fix a couple of typos in a comment.keramida2002-07-152-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 didtjr2002-07-121-1/+1
| | | | before I made unlink use getopt().
* Don't duplicate the description of the sticky bit that is alreadykeramida2002-07-121-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=0bde2002-07-111-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 NULLsheldonh2002-07-113-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 descriptortjr2002-07-111-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;tjr2002-07-111-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.tjr2002-07-111-1/+2
|
* err() is documented as allowing NULL for the format string but GCC isn'tdillon2002-07-106-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'tdillon2002-07-101-1/+1
| | | | happy about it any more so change the useage so buildworld works again.
OpenPOWER on IntegriCloud