summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* - Fix options order.ru2006-08-252-7/+7
| | | | - Touch manpage's document date.
* Remove a stray -a option that probably sneaked in from julian'sru2006-08-251-2/+2
| | | | attempt to enter append mode twice in vi(1). :-)
* Add an option to allow copying of a hierarchy while linking he regular files.julian2006-08-244-82/+105
| | | | | | Bikeshedded to death on: hackers Submitted by:andersonatcenttech.com MFC in: 1 month
* For the sake of clarity, explicitly tell that comma and spaceyar2006-08-211-2/+3
| | | | | | characters can be included in a custom column title string -- that's why it may appear at the end of a keyword list argument only.
* Prefer strlcpy to strncpy. In one case, this saves us from re-zeroingimp2006-08-201-2/+2
| | | | | data that's alreday 0. In another, it saves us from zeroing data that will be overwritten again.
* Use strlcpy in place of strncpy + setting the last character NUL. Toimp2006-08-201-2/+2
| | | | be safe, memset the entire msg to '0'.
* Document a detail in the present syntax of "ps -o foo=bar". Nowyar2006-08-181-6/+7
| | | | | | | | the header title string "bar" extends to the end of the argument even if it contains commas or spaces, unlike in RELENG_4 or earlier. The modern syntax agrees with SUSv3. MFC after: 3 days
* while(0); -> while (0) in multiline macroimp2006-08-171-1/+1
|
* Commit the results of the typo hunt by Darren Pilgrim.yar2006-08-041-1/+1
| | | | | | | | | | This change affects documentation and comments only, no real code involved. PR: misc/101245 Submitted by: Darren Pilgrim <darren pilgrim bitfreak org> Tested by: md5(1) MFC after: 1 week
* Do not forget to increment the input line counteryar2006-07-311-0/+1
| | | | | | | when reading a word spanning multiple lines. PR: bin/101094 MFC after: 5 days
* Granting the amount of misunderstanding the last change received,yar2006-07-311-1/+7
| | | | extend it with an example to clarify the point.
* Tell more of the sh(1) history.yar2006-07-291-2/+17
| | | | | | Acknowledge Kenneth Almquist's contribution in AUTHORS. MFC after: 5 days
* Document that both sides of -a or -o are always evaluated. Thisyar2006-07-271-1/+8
| | | | | | | | | "feature" doesn't seem to be in the standards or elsewhere, and it is against what we are used to in C and sh(1), so put the paragraph under BUGS. Pointed out by: dougb MFC after: 3 days
* Make it easier to find that we have test(1) built-in in sh(1).yar2006-07-261-4/+9
| | | | MFC after: 3 days
* More inactive maintainers.markm2006-07-091-2/+0
|
* o Call fts_close() before exit.maxim2006-07-041-0/+1
| | | | Obtained from: NetBSD, Coverity ID 1754
* Document the fact that 'true' and 'false' are among sh(1) built-in commands.yar2006-06-211-1/+5
| | | | MFC after: 3 days
* Merge NetBSD's revision 1.86: Don't crash on "<cmd> | { }".stefanf2006-06-151-1/+1
|
* Implement the PS4 variable which is defined by the POSIX User Portabilitystefanf2006-06-154-6/+23
| | | | | | | | | | | | Utilities option. Its value is printed at the beginning of the line if tracing (-x) is active. PS4 defaults to the string "+ " which is compatible with the old behaviour to always print "+ ". We still need to expand variables in PS1, PS2 and PS4. PR: 46441 (part of) Submitted by: schweikh Obtained from: NetBSD
* Don't strip a leading ./ from the path for the cd builtin to avoid interpretingstefanf2006-06-121-2/+3
| | | | | | | | | | .//dir as /dir. Rather strip it only for the purpose of checking if the directory path should be printed. PR: 88813 Submitted by: Josh Elsasser Patch from: NetBSD (cd.c rev 1.38) MFC after: 2 weeks
* o Fix grammar, format.maxim2006-06-091-3/+3
|
* Document the way to get list of files to process from the stdin.kib2006-06-091-1/+3
| | | | | MFC after: 1 week Approved by: kan (mentor)
* Copy filename read from the stdin into the private buffer. Otherwise,kib2006-06-091-1/+5
| | | | | | | | | next read filename overwrite previous one, resulting in acl being applied only to the last name in the list. Submitted by: Oleg Lomaka <oleg.lomaka at gmail com> MFC after: 1 week Approved by: kan (mentor)
* 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>
OpenPOWER on IntegriCloud