summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Fix the wording about the blocksize (-b) parameter. The existingcokane2006-05-101-2/+3
| | | | | | | | | wording makes it look like pax archives > 32256 bytes are not POSIX-compliant! Correct this to state that pax archives with block sizes > 32256 are not POSIX compliant...and settle our fears. PR: docs/97059 Reviewed by: Giorgos Keramidas <keramida>
* POSIX demands that set's output (when invoked without arguments) should bestefanf2006-04-291-9/+47
| | | | | | sorted. Sort the variables before printing. PR: 96415
* Check the buffer size when copying the line returned by el_gets() into ourstefanf2006-04-291-4/+13
| | | | | | | | | own buffer. Interactively typing in long lines (>1023 characters) previously overflowed the buffer. Unlike the NetBSD people I don't see the need to subtract 8 from BUFSIZ, so I just used BUFSIZ-1. Obtained from: NetBSD PR: 91110
* Whitespace nits.schweikh2006-04-172-5/+5
|
* Correct assorted grammos and typos.schweikh2006-04-161-11/+11
|
* o Be pedantic and do fts_close() when done.maxim2006-04-151-0/+1
| | | | | | PR: bin/95292 Submitted by: Charles Hardin Obtained from: NetBSD via OpenBSD, PR
* Output something reasonable for regular and expanded here-documents.schweikh2006-04-141-0/+6
| | | | | | I would have chosen the EOF markers, but they are no longer available AFAICS, so output "<<HERE" and "<<XHERE" instead. (NOTE: These changes only affect DEBUG output.)
* Implement some of the differences between special built-ins and other builtinsstefanf2006-04-094-19/+23
| | | | | | | | | | | | | | | | | | | | demanded by POSIX. - A redirection error is only fatal (meaning the execution of a shell script is terminated) for special built-ins. Previously it was fatal for all shell builtins, causing problems like the one reported in PR 88845. - Variable assignments remain in effect for special built-ins. - Option or operand errors are only fatal for special built-ins. This change also makes errors from 'fc' non-fatal (I could not find any reasons for this behaviour). Somewhat independently from the above down-grade the error handling in the shift built-in if the operand is bigger than $# from an error() call (which is now fatal) to a return 1. I'm not sure if this should be considered a POSIX "operand error", however this change is needed for now as we trigger that error while building libncurses. Comparing with other shells, zsh does the same as our sh before this change (write a diagnostic, return 1), bash behaves as our sh after this commit (no diagnostic, return 1) and ksh93 and NetBSD's sh treat it as a fatal error.
* Re-correct commit 1.73, but this time in a way that does not causegad2006-04-061-9/+18
| | | | | | | | | | | all column-headers to print in lowercase by default. I was in too much of a rush in committing 1.75, and didn't notice that the case had changed. This time I did considerably more testing, and used 'diff' instead of just quickly eyeballing the results... Apologies. I expect this means the dunce cap is mine for awhile. If this doesn't work, I'll just drop back to 1.72 and hide under my desk for awhile.
* Fix a problem introduced by change 1.73, which causes a seg-fault ifgad2006-04-051-0/+2
| | | | | | | | the user specifies a keyword which is an alias to some other keyword. E.g.: stat (for state) or pcpu (for %cpu).. Submitted by: Kostik Belousov MFC plans: "soon"
* Issue an error when . (dot) is invoked without a filename. The synopsisstefanf2006-04-021-8/+10
| | | | | | | is just ". file" according to POSIX, however many other shells allow arguments to be passed after the file. For compatibility (we even use that feature in buildworld) additional arguments are not considered to be an error, even though this shell does not do anything with the arguments at all.
* Use -s to flag POSIX's "special built-in" utilities in builtins.def. Add astefanf2006-04-022-22/+30
| | | | | | | | new member to struct builtincmd and set it to 1 if -s was specified. This is done because there are cases where special builtins must be treated differently from other builtins. Obtained from: NetBSD (builtins.def part)
* Change the -S and -t options to override each other so that the last onejhb2006-03-242-0/+10
| | | | specified wins to make their interaction less confusing.
* Fix a bug such that if you enabled sorting by size (-S) and enabled ajhb2006-03-241-4/+4
| | | | | | | | | flag to use a time other than modtime (-c, -u, or -U), the output would actually be sorted by the specified time rather than size. This does alter the behavior in the case where both -S and -t are specified. Now, -S is always preferred. Previously, -t was preferred if one of -c, -u, or -U was specified, and -S was preferred otherwise. Perhaps -S and -t should override each other (last one specified wins).
* Add a few more references to -U.jhb2006-03-241-4/+4
|
* Add a new -U flag to instruct ls to use the birthtime for printing orjhb2006-03-247-4/+49
| | | | | | | sorting. Submitted by: Andrzej Tobola ato at iem dot pw dot edu dot pl MFC after: 1 week
* Fix spelling.ru2006-03-191-1/+1
|
* Reimplementation of world/kernel build options. For details, see:ru2006-03-174-7/+15
| | | | | | | | http://lists.freebsd.org/pipermail/freebsd-current/2006-March/061725.html The src.conf(5) manpage is to follow in a few days. Brought to you by: imp, jhb, kris, phk, ru (all bugs are mine)
* Add "-q" argument to getfacl(1), which suppresses the per-file headerrwatson2006-03-132-11/+20
| | | | | | | comment listing the file name, owner, and group. MFC after: 1 week Submitted by: Jan Srzednicki <w at expro dot pl>
* Use .Cm for all key words, not just the ones I added. More in line withtrhodes2006-03-101-12/+12
| | | | | | mdoc(7) according to ru. Requested by: ru
* Collapse strncpy/strncat/strncat into a single snprintf, as suggestedgad2006-03-081-3/+1
| | | | | | by pjd. MFC after: 3 weeks
* Fix the case where the user specifies an alternate heading for somegad2006-03-081-6/+13
| | | | | | | | | output-format keyword, and the keyword they picked is an alias to some other keyword. E.g.: ps -o stat=Zustand $$ ('stat' is defined as an alias for 'state') PR: bin/57833 MFC after: 3 weeks
* Slightly better markup.trhodes2006-03-061-8/+8
| | | | Discussed with: ru
* Instead of just hinting at available octets, list some.trhodes2006-03-041-1/+43
| | | | | | Mention that the setting of securelevel may affect one's ability to alter flags. Xref security.7. Bump doc date.
* For pts, print the pts number, instead of the full name. As it was, we endedcognet2006-02-211-0/+2
| | | | | | up always printing "pts". Submitted by: Michal Mertl <mime at traveller dot cz>
* Enable NLS catalog of csh(1).ume2006-02-194-1/+136
| | | | | | | | | | | | | The tcsh 6.14 uses libiconv to convert catalogs to appropriate charset dynamically. However, we don't have libiconv in our tree. So, I made some hack to load libiconv dynamically. If libiconv is available, you can use catalogs for more locales than the locales which catalog is actually installed. To use this feature, you need to symlink catalogs to appropriate locales. You can do this by installing ports/shells/tcsh_nls. Reviewed by: arch (no objection) MFC after: 1 week
* Add '-F' option which allows to delete existing empty directories, whenglebius2006-02-142-8/+50
| | | | | | | creating symbolic links. PR: bin/92149 Submitted by: Eugene Grosbein <eugen grosbein.pp.ru>
* Initialize PWD early on (don't expect it to be inherited from theschweikh2006-02-041-0/+2
| | | | | | environment or set it only when changing directories with cd). PR: standards/92640
* s/staticly/statically/gschweikh2006-02-041-2/+2
|
* s/varable/variable/; s/tored/stored/schweikh2006-02-041-2/+2
|
* Remove some white space at EOL.schweikh2006-02-045-15/+15
|
* Document that '#' starts a comment.stefanf2006-01-011-0/+7
| | | | | | | PR: 85103 Submitted by: garys Obtained from: pdksh manual Patch from: Daniel Gerzo (with changes by me)
* o Now when SIG_IGN signal action for SIGCHLD reap zombiesmaxim2005-12-141-0/+2
| | | | | | | | | | | | automatically it is possible wait4(2) returns -1 and sets errno = ECHILD if there were forked children. A user can set such signal handler e.g. via ``trap "" 20'', see a PR for the test case. Deal with this case and mark a job as JOBDONE. PR: bin/90334 Submitted by: bde MFC after: 4 weeks
* [mdoc] add missing space before a punctuation type argument.ru2005-12-131-1/+1
|
* - Document trap's -l option and the behaviour of a missing action or a singlestefanf2005-12-081-2/+14
| | | | | | | | dash. - Discourage the omission of the action. PR: 70985 [1] Submitted by: Martin Kammerhofer
* Print empty quotes ('') when an empty string is passed to outqstr().stefanf2005-12-081-0/+4
| | | | | | | This makes a difference for the trap builtin, where after "trap '' 0" we printed "trap -- quit". This is wrong, because an empty action means to reset the action to the default. A side effect of this commit is that empty variables are now printed as "variable=''" instead of just "variable=".
* Correctly quote the output when showing the installed trap actions.stefanf2005-12-081-6/+5
| | | | | PR: 74043 Submitted by: Jilles Tjoelker
* Clarify that the echo builtin takes an arbitrary number of strings.stefanf2005-12-081-4/+3
| | | | Mention that spaces are printed between the strings.
* Sort.stefanf2005-12-041-6/+6
|
* Remove a few commented out builtins from the original ash. The filesstefanf2005-12-041-5/+0
| | | | implementing them were never part of FreeBSD.
* Add the times builtin. It reports the user and system time for the shellstefanf2005-12-044-1/+34
| | | | | | itself and its children. Instead of calling times() (as implied by POSIX) this implementation directly calls getrusage() to get the times because this is more convenient.
* -mdoc sweep.ru2005-11-175-27/+18
|
* Having three options (-a, -A, -I) controlling the output of dottedru2005-11-163-20/+14
| | | | | | | | | | | files is too much and hard to follow. Instead, make the -I option just mean "do not automatically set -A for root". That is, if -A is explicitly set, -I is ignored. Also, document -I in usage(). (The ls.c diff is better viewed relative to rev. 1.80.) No objection: mux Silence from: mnag MFC after: 3 days
* Mention the non-standardness of the -I option in ls(1).mux2005-11-101-1/+2
| | | | | Spotted by: ru MFC after: 3 days
* Add a -I option to disable the automatic -A flag for the super-user.mux2005-11-102-9/+25
| | | | | | PR: bin/86710 Submitted by: Marcus Alves Grando MFC after: 3 days
* Add `local' and `return' to the list of built-ins.jcamou2005-11-031-0/+8
| | | | | Submitted by: garys Approved by: trhodes (mentor)
* Note which options are not part of the standards.trhodes2005-11-011-1/+12
| | | | | | | Xref locale(1) and bump document date. Reviewed by: keramida No Objections: -standards
* Include disabled options in the output of 'set +o'. POSIX says the output ofstefanf2005-10-291-11/+8
| | | | | | | | | | | | set +o can be used to reload previous settings, for this to work disabled options must be printed as well or otherwise options that were set in the mean time won't be turned off. To avoid an excessively long output line I formatted the output to print only six options per line. Submitted by: Jilles Tjoelker PR: 73500
* Document command -v and -V.stefanf2005-10-291-2/+39
| | | | Glanced at by: simon
* Document that read -t timeout returns 1 if the timeout elapses.stefanf2005-10-291-1/+1
|
OpenPOWER on IntegriCloud