summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
...
* Support the 'comm' keyword, which is equivalent to our 'command', butjmallett2002-06-051-0/+2
| | | | specified by SUSv3.
* A space cannot be a header string seperator it appears given the SUSv3jmallett2002-06-051-1/+1
| | | | | description of ps(1), which uses them. I question whether newline and tab can be either, but I'm not touching them. Yet.
* To comply with SUSv3, duplicate the variable contents for each given format,jmallett2002-06-051-1/+4
| | | | | | | | | | | | so that multiple -ovar=header lines do not overwrite eachother. This means that ps -ouser=USERNAME -ouser=WHO would now possibly print: USERNAME WHO juli juli Whereas before it would be: WHO WHO juli juli
* Returning NULL here if malloc(3) fails is silly, at this point in the codepathjmallett2002-06-051-1/+1
| | | | | we have't malloc(3)'d nearly as much as we probably will, so errx(3) away, instead of waiting for something to fail yet again later on.
* Remove an XXX comment that seems to be a tiny bit no longer pertinent. Thisjmallett2002-06-051-4/+0
| | | | | | function seems to do the right thing, and is not a "stub", and whoever "marc" is, he's had plenty of time to do "the real one", so don't wait around for him any longer.
* Use of zero here meant many things, NULL, '\0' (NUL), and 0. Sort it out.jmallett2002-06-051-5/+5
|
* Use a const char * where it is meant to be used. There's no reason to tryjmallett2002-06-051-1/+2
| | | | to discard the const qualifier here.
* Duplicate the pointer to the string containing the header so it does not getjmallett2002-06-051-1/+1
| | | | frobbed when/if the pointer it is actually a part of gets freed.
* Display job status correctly when a pipeline is suspended.tjr2002-06-041-6/+8
|
* Describe finished jobs as "Done", not "Exit" (SUSv3)tjr2002-06-041-1/+5
|
* Don't output `state' and `current' fields for processes that aren'ttjr2002-06-041-3/+5
| | | | leaders in -l option to jobs(1).
* Missing prototypes from previous commit.tjr2002-06-041-0/+3
|
* Correct minor spacing problem in output of jobs -l for pipelines.tjr2002-06-041-1/+1
|
* Quote alias values in the output of the alias(1) builtin so they aretjr2002-06-043-5/+44
| | | | suitable for re-input to the shell (SUSv3)
* Respect setting of the COLUMNS environment variable (SUSv3)tjr2002-06-042-1/+14
|
* Ignore empty COLUMNS environment variable. COLUMNS should take precedencetjr2002-06-041-5/+5
| | | | over TTY width found via ioctl() (SUSv3)
* Correct history (again): V3 had a kill command, only it was in section 8,tjr2002-06-031-1/+1
| | | | not 1.
* Correct History: sync(8) appeared in V4.tjr2002-06-031-1/+1
|
* Correct History section: kill(1) appeared in V4, not V6.tjr2002-06-031-1/+1
|
* Fix typo causing ``fc -e'' to not work correctly. getopt() sets optarg,tjr2002-06-021-1/+1
| | | | not shoptarg.
* Adding an entry to the history with H_ENTER moves libedit's internaltjr2002-06-021-0/+9
| | | | | history cursor. Reset the cursor after adding the entry to the history when doing ``fc -s'' so the output is correct.
* Implement $PPID, the parent process ID of the shell.tjr2002-06-012-0/+9
|
* Support the remaining job ID formats required by SUSv3:tjr2002-06-011-2/+21
| | | | | | %+ (current job, same as %%), %- (previous job), %?str (job with "str" in its command name).
* Add -s (output PID's only) and -l (show PID's) options to the jobs(1)tjr2002-05-314-18/+85
| | | | builtin. Modify the output format to match what SUSv3 requires.
* #if JOBS around a job control-related statement to allow compilation withtjr2002-05-311-0/+2
| | | | job control disabled.
* Break the code to display status info for one job out from showjobs() intotjr2002-05-311-63/+52
| | | | | showjob(), use it inside dowait() to display status info for consistency, and in a format closer to what the standard requires.
* Move job to front of most recently used job list when bg'd or fg'd.tjr2002-05-311-0/+1
|
* Instead of keeping just the jobid of the most recently bg'd or fg'd job,tjr2002-05-312-9/+85
| | | | | | keep a linked list of the jobs, most recently used first. This is required to support the idea of `previous job', and to allow the jobs fg and bg default to be correct according to POSIX.
* mdoc(7) police: kill hard sentence breaks.ru2002-05-301-3/+5
|
* Reject options, handle "--" correctly in unlink(1).tjr2002-05-301-4/+7
|
* Reject options, handle "--" end-of-options marker in link(1).tjr2002-05-301-4/+7
|
* mdoc(7) police: punctuation.ru2002-05-291-1/+1
|
* mdoc(7) police: tidy up the markup a bit.ru2002-05-291-142/+41
|
* mdoc(7) police: markup nits.ru2002-05-291-11/+11
|
* mdoc(7) police: markup nits.ru2002-05-291-2/+3
|
* mdoc(7) police: punctuation.ru2002-05-291-3/+3
|
* mdoc(7) police: replace the XXX with the correct width.ru2002-05-291-2/+1
|
* Add uuidgen(2) and uuidgen(1).marcel2002-05-283-0/+190
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The uuidgen command, by means of the uuidgen syscall, generates one or more Universally Unique Identifiers compatible with OSF/DCE 1.1 version 1 UUIDs. From the Perforce logs (change 11995): Round of cleanups: o Give uuidgen() the correct prototype in syscalls.master o Define struct uuid according to DCE 1.1 in sys/uuid.h o Use struct uuid instead of uuid_t. The latter is defined in sys/uuid.h but should not be used in kernel land. o Add snprintf_uuid(), printf_uuid() and sbuf_printf_uuid() to kern_uuid.c for use in the kernel (currently geom_gpt.c). o Rename the non-standard struct uuid in kern/kern_uuid.c to struct uuid_private and give it a slightly better definition for better byte-order handling. See below. o In sys/gpt.h, fix the broken uuid definitions to match the now compliant struct uuid definition. See below. o In usr.bin/uuidgen/uuidgen.c catch up with struct uuid change. A note about byte-order: The standard failed to provide a non-conflicting and unambiguous definition for the binary representation. My initial implementation always wrote the timestamp as a 64-bit little-endian (2s-complement) integral. The clock sequence was always written as a 16-bit big-endian (2s-complement) integral. After a good nights sleep and couple of Pan Galactic Gargle Blasters (not necessarily in that order :-) I reread the spec and came to the conclusion that the time fields are always written in the native by order, provided the the low, mid and hi chopping still occurs. The spec mentions that you "might need to swap bytes if you talk to a machine that has a different byte-order". The clock sequence is always written in big-endian order (as is the IEEE 802 address) because its division is resulting in bytes, making the ordering unambiguous.
* Note that the lutimes(2) and lchflags(2) syscalls also do not follow symlinks.tjr2002-05-261-13/+16
| | | | | | | Remove incorrect examples. PR: 25016 Submitted by: Martin Kammerhofer, Joshua Goodall
* Add lchmod(2) to the list of syscalls that do not follow symbolic links.tjr2002-05-261-1/+3
|
* sh appeared in Version 1, not System V.1.tjr2002-05-251-1/+1
|
* Implement `set +o', which displays the currently set options in a formattjr2002-05-252-5/+28
| | | | suitable for re-input into the shell.
* Bring back the cd -L and -P options from revision 1.24, but try harder nottjr2002-05-221-33/+105
| | | | | | to fail when the logical current directory no longer exists. Allow changes to absolute paths when logical cwd is invalid, fall back to physical cd if logical cd fails.
* Temporarily back out revision 1.24; it seems to handle the case where thetjr2002-05-221-78/+22
| | | | current directory no longer exists incorrectly and breaks `make cleandir'.
* Add the SUSv3 -L and -P options to the cd and pwd builtin utilities. `Logical'tjr2002-05-202-24/+110
| | | | handling of .. is now the default.
* Remove a small, annoying, nit I ran in to editing this file, a lone tabjmallett2002-05-191-1/+1
| | | | on a line by itself.
* Implement the -u (-o nounset) option, which gives an error message iftjr2002-05-192-1/+11
| | | | | | an unset variable is expanded. Obtained from: NetBSD (bjh21, christos)
* Make the fg and bg commands give the output required by SUSv3.tjr2002-05-191-0/+10
| | | | | fg outputs the name of the command, bg outputs the name of the command and the job id.
* Implement the -C (-o noclobber) option, which prevents existing regulartjr2002-05-198-1/+19
| | | | files from being overwritten by shell redirection.
* Add missing options required by SUSv3:tjr2002-05-195-16/+100
| | | | | | | | -m List files across the page, separated by commas. -p Print a slash after directory names -x Same as -C but sort across the columns rather than down Submitted by: Kyle Martin <mkm@ieee.org>
OpenPOWER on IntegriCloud