summaryrefslogtreecommitdiffstats
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* Use lstat(2) instead of stat(2) when deciding if we should fastcopydwmalone2000-07-111-1/+1
| | | | | | | a file. This fixes moving symlinks across partitions. PR: 17847 Reviewed by: bde
* Extend numeric operations to support 64 bit numbers.se2000-07-101-30/+29
|
* Add support for 64bit integer comparisons.se2000-07-101-6/+50
|
* Don't call warn() with no format string. This is potentially exploitable, ↵kris2000-07-101-1/+1
| | | | | | although it would be difficult both technically and in practise.
* Initial kenv(1) hack for dumping the kernel environment. This can bepeter2000-07-083-0/+186
| | | | | | used to extract modified boot hints to make loader(8)-time changes "sticky". It tries to use \ style quoting so that it can be used directly with foo.conf files. It can also extract specific variables.
* Fix the exit code for the case where nentries == 0; if a PID doesn't exist,will2000-07-081-1/+1
| | | | | | | | | ps(1) should not be returning a success code (0), it should return an error code (1). This was fixed on OpenBSD over 3 years ago. PR: 19069 Submitted by: Jim Sloan <odinn@atlantabiker.net> Reviewed by: rwatson
* Explain the dependence of colour support on the capabilities of thesheldonh2000-07-071-0/+20
| | | | | | | | | | terminal emulator. As pointed out by jhb, a more scalable solution would be preferable when multiple applications in the base system begin linking against libh. Submitted by: Doug Barton <DougB@gorean.org>
* restore tabs lost from prev commitache2000-07-071-2/+2
| | | | Asked-by: bde
* curses -> termcap, mainly for purity and to indicate which functions familyache2000-07-061-2/+2
| | | | really used
* make sure we do not write out non-printable characters in file namesassar2000-07-045-25/+36
| | | | | | | and symbolic links (by default) PR: bin/19354 Reviewed by: silence on -current
* Various cleanups are made to reduce warnings and make code prettier :)green2000-07-015-17/+29
| | | | | Also, check for ftruncate() return value and die on failure, but only try to ftruncate() when the file is a regular file.
* Fix the rmdir -p a/b/c/ case, where rmdir -p a/b/c works, and rmdir c/nbm2000-06-281-0/+4
| | | | | | | | works. PR: PR 6521 Submitted by: Rudolf Cejka <xcejka00@dcse.fee.vutbr.cz> Reviewed by: eivind (in brief retrograde)
* Grumble. The previous commit still had the wrong date in thempp2000-06-281-1/+1
| | | | | example. Oct 29 0:30 +3 hours is still Oct 29, no matter what the DST setting is, and not Oct 30..
* Typo fix.mpp2000-06-281-1/+1
| | | | | PR: docs/19554 Submitted by: Kazuo Horikawa <horikawa@psinet.com>
* Use Dq Li (double-quoted literal) instead of Ic (internal command) tosheldonh2000-06-271-4/+2
| | | | | | | | mark up a sample invocation, since it is not a command internal to the described utility. Do not use Ar (argument) to mark up something which is not an argument to the utility or one of its internal commands.
* Add \a and \e to "echo -e" escape handling.mph2000-06-261-0/+2
|
* Use %Efache2000-06-221-2/+2
|
* Fix changes from 1.34 through 1.37:sheldonh2000-06-221-6/+14
| | | | | | Remove newly added hard sentence breaks. Mark ANSI up as a type name (Tn). Avoid parenthesized sentences and paragraphs.
* Mention the timezone where appropriate (for the -v option).brian2000-06-221-3/+3
| | | | correct one of the -v options.
* Order the ENVIRONMENT section alphabetically.joe2000-06-211-5/+5
|
* I broke locale sensitive ordering of date and month injoe2000-06-212-6/+16
| | | | | | | | | | the long -l output format with the last commit. Fix it by replacing the "%b %e" strftime format with "%Ef". Make a note in the manual page that the LANG environment variable affects the running of ls. Reviewed by: ache
* Don't assume that the output of strftime for "%c" ("nationaljoe2000-06-181-15/+10
| | | | | | | | | representation of time and date") won't change in time. Instead of hard coding the locations of the time elements and hoping that they don't move use strftime to generate the desired formats in the first place. PR: bin/7826
* Switch over to using the new fflagstostr and strtofflags library calls.joe2000-06-177-21/+18
|
* Activate Japanese NLS and KANJI supportache2000-06-114-12/+1
|
* Fix one conditionalization in my prev. commitache2000-06-061-2/+3
|
* Greately simplify oxtabs fix by simple setting f_notabs for f_colorache2000-06-062-14/+10
|
* Honor f_notabs flag even in COLORLSache2000-06-061-1/+1
|
* Back out spaces to TABs replace removing for COLORLSache2000-06-061-0/+13
| | | | | Rewrite corresponding comment to say what happens in reality with oxtabs and current terminal column.
* Don't replace TABs with spaces for COLORLS because "some terminals get confused"ache2000-06-061-12/+0
| | | | | as comment says. I know no terminal confused by this. If even such terminal exists, it must be termcap flag for this, not hardcoded in ls.
* Add -G to usage: if COLORLSache2000-06-061-1/+6
|
* Staticize more functionsache2000-06-061-4/+7
|
* Move colorquit() prototype to extern.hache2000-06-062-4/+4
| | | | | Add "extern" to variables declarations in extern.h to not make them commons into each compiled file.
* Make signal handler safe - don't use stdio (pointed by bde)ache2000-06-062-14/+26
| | | | | | Staticize some color functions Add yet one tolower() call which is forgotten after check Don't check for OOPS - not really needed
* Reflect reality:ache2000-06-061-2/+2
| | | | | yellow -> brown white -> light grey
* Get rid of curses completely - use tgoto instead of tparmache2000-06-051-5/+4
|
* Do SIGINT cleanup for SIGQUIT as well.cracauer2000-06-051-0/+1
|
* Kill yourself in ^C handler, not exit(1) to allow script to sense signalache2000-06-051-7/+10
|
* Cosmetique of prev. optimization - don't use global variableache2000-06-051-1/+6
|
* Don't use curses includes, include termcap.h insteadache2000-06-051-13/+26
| | | | | | | Don't use curses functions, use tputs instead Add ^C reaction - reset colors Optimization - don't turn off colors after EACH file printed. Fix wrong ctype macro arg type in LSCOLORS parsing
* Don't use curses includes, include termcap.h insteadache2000-06-051-6/+7
| | | | Add ^C reaction set
* Don't use ncurses, use termcapache2000-06-051-1/+2
| | | | Add DPADD
* Don't look up the ANSI sequences each time a colour is changed,joe2000-06-053-11/+31
| | | | | | | | | | | this is extremely inefficient, instead write them all down at the beginning. The correct sequence to switch colours off is to first use 'op' if it exists, otherwise use 'oc'. If neither of these exist then we shouldn't be doing colour with this terminal. Reviewed by: ache
* Disable colour support in ls when building the fixit floppy, and makejoe2000-06-051-0/+2
| | | | a note of it in the release Makefile.
* * Re-implement colour support using termcap's AF and AB capabilitiesjoe2000-06-055-12/+74
| | | | | | | | | | | | | to manage the ANSI colour sequences. Colour support is disabled unless the TERM environment variable references a valid termcap. * Allow optional compilation of the colour support in the Makefile, defaulting to yes. This allows us to switch it off for fixit floppies and other mediums where space is an issue and the extra bloat of statically linking with ncurses isn't acceptable. * Display a warning if colour is requested with '-G' but support for it isn't compiled in.
* Add -g for gigabyte sizes.jwd2000-06-032-1/+10
| | | | Approved by: jkh
* Add colour support to /bin/ls (at a cost of 1056 bytes on my system).joe2000-06-025-4/+220
| | | | | | | | | | | | | | It is not switched on by default and must be enabled with the -G flag. When using ls -G the output behaviour is modified with ANSI colour sequences wrapped around filenames to help distinguish file types. (Colours can be redefined in the LSCOLORS environment variable as described in the manual page.) Colour support is silently disabled (if switched on) if stdout isn't a tty. Based on: asami's colorls port. PR: bin/18900 && ports/18616.
* Fix ``dd if=/dev/zero of=/dev/daN'' on the Alpha by allowing the labelobrien2000-05-241-1/+8
| | | | | | to be overwritten. Submitted by: green
* Propogate the ``call mktime'' flag from adjwday() down to adjday().brian2000-05-231-4/+4
| | | | Submitted by: Christian Weisgerber <naddy@mips.inka.de>
* Correct confusion and differentiate appropriately between GMT and UTC whendbaker2000-05-192-4/+4
| | | | | | | | | date is launched with the "u" argument. It now operates in the documented manner. Fix typo in date man page. Submitted by: David McNett <nugget@slacker.com>
* In its current state, this file is no longer needed.obrien2000-05-151-2220/+0
|
OpenPOWER on IntegriCloud