aboutsummaryrefslogtreecommitdiff
path: root/bin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r205940:Xin LI2010-06-103-617/+0
| | | | | | | | | Remove unused files. PR: bin/38256 Notes: svn path=/stable/6/; revision=209021
* Log:Ed Maste2010-01-171-0/+4
| | | | | | | | | MFC r197371: Mention that NUL characters are not allowed in sh(1) input. PR: bin/25542 Notes: svn path=/stable/6/; revision=202484
* MFC r200794:Xin LI2010-01-041-0/+1
| | | | | | | | | | | Plug a memory leak. PR: bin/141835 Submitted by: Henning Petersen <henning.petersen t-online.de> MFC after: 2 weeks Notes: svn path=/stable/6/; revision=201462
* MFC r198189: Check error of dlfunc(3).Hajimu UMEMOTO2009-10-201-0/+11
| | | | Notes: svn path=/stable/6/; revision=198286
* MFC r189078:Attilio Rao2009-09-084-13/+41
| | | | | | | | | | | | * Implement ucomm with a dynamic size function in order to print out the threads name also in the case they are not the last one shown. * On AMD64 pointers don't have enough space to be printed. Fix it. * Check a return value for malloc which wasn't checked before Sponsored by: Sandvine Incorporated Notes: svn path=/stable/6/; revision=196975
* MFC r189542:Ed Schouten2009-03-221-0/+1
| | | | | | | | | | | | | | | | | | | | Don't disable CR-to-NL translation when waiting for data to arrive. A difference between the old and the new TTY layer is that the new implementation does not perform any post-processing before returning data back to userspace when calling read(). sh(1)'s read turns the TTY into a raw mode before calling select(). This means that the first character will not receive any ICRNL processing. Inherit this flag from the original terminal attributes. Even though this issue is not present on RELENG_*, I'm MFCing it to make sh(1) in jails behave better. PR: bin/129566 Notes: svn path=/stable/6/; revision=190254
* MFC 187922,187609 from /headGiorgos Keramidas2009-01-301-1/+6
| | | | | | | | | | | | | | | Add an example of using bs=2048 to duplicate data CD-ROMs. This should be a bit useful for users who look at the manpage and then try to copy data CD-ROM disks using dd. A lot of us know that bs=2048 is required, but it still manages to cause a bit of grief to those who haven't heard about it. PR: bin/130857 Submitted by: Tri Brotoharsono < mail at tribrotoharsono.net > Notes: svn path=/stable/6/; revision=187924
* MFC: Fix ACL preservation.Edward Tomasz Napierala2008-09-031-1/+3
| | | | | | | Approved by: re (kensmith), rwatson (mentor) Notes: svn path=/stable/6/; revision=182719
* Revert, this was supposed to go into HEAD.Stefan Farfeleder2008-04-274-32/+20
| | | | Notes: svn path=/stable/6/; revision=178624
* - Fix bugs where the value of arithmetic expansion$((...)) was trucatedStefan Farfeleder2008-04-274-20/+32
| | | | | | | | | | | | | | to type int. - Change the type used for arithmetic expansion to intmax_t (ie. 64 bit on all currently supported FreeBSD architectures). SUSv3 requires at least type long but allows for larger types. Other shells (eg. bash, zsh, NetBSD's sh) do that too. PR: 122659 Submitted by: Jaakko Heinonen (minor modifications by me) Notes: svn path=/stable/6/; revision=178623
* MFC 1.26: Reset the internal state used for the 'getopts' built-in when 'shift'Stefan Farfeleder2008-04-201-2/+2
| | | | | | | or 'set' are used to modify the arguments. Notes: svn path=/stable/6/; revision=178346
* MFC 1.36: Leave working directory variables unchanged if chdir() fails.Stefan Farfeleder2008-04-201-38/+45
| | | | Notes: svn path=/stable/6/; revision=178345
* MFC: tcsh 6.15.00.Xin LI2008-03-113-26/+43
| | | | Notes: svn path=/stable/6/; revision=177072
* MFC revisions 1.47-1.50.Diomidis Spinellis2008-01-271-18/+59
| | | | | | | | | | | | | | - Follow POSIX specification when moving a directory to an existing directory across devices. - Improve consistency and remove some style bugs of earlier versions. This version passes all tests of tools/regression/bin/mv/regress.sh 1.6 PR: bin/118367 Notes: svn path=/stable/6/; revision=175713
* MFC: eval.c 1.54, sh.1 1.125Stefan Farfeleder2007-10-262-0/+5
| | | | | | | | The exit status of a case statement where none of the patterns is matched is supposed to be 0, not the status of the previous command. Notes: svn path=/stable/6/; revision=173015
* MFC 1.29:Pav Lucistnik2007-05-241-2/+2
| | | | | | | Replace a fairly opaque sentence with a much clearer wording from NetBSD. Notes: svn path=/stable/6/; revision=169968
* MFC: r1.67: Make error messages regarding -t and -l consistent.Will Andrews2007-03-171-1/+4
| | | | Notes: svn path=/stable/6/; revision=167654
* MFC:Stefan Farfeleder2007-02-041-3/+6
| | | | | | | | 1.30: Correct exit status for type/command builtin. 1.31: Use eaccess instead of access. Notes: svn path=/stable/6/; revision=166491
* MFC df.c revision 1.66Christian S.J. Peron2007-01-201-2/+11
| | | | | | | | | | | Based on The Open Group Base Specifications Issue 6 IEEE Std 1003.1, our current implementation of df(1) is does not properly format the output under certain conditions. Right now -kP and -Pk are not the same thing. Further, when we set the BLOCKSIZE environment variable, we use "1k" instead of "1024", making the header display incorrectly. Notes: svn path=/stable/6/; revision=166114
* MFC support for Linux-compatible -f flag.Tim Kientzle2006-12-152-5/+15
| | | | Notes: svn path=/stable/6/; revision=165238
* MFC: Fix expanding of quoted positional parameters in case patterns.Stefan Farfeleder2006-11-221-6/+6
| | | | Notes: svn path=/stable/6/; revision=164490
* MFC: Report invalid parameter expansions only when they are executed.Stefan Farfeleder2006-11-223-9/+25
| | | | Notes: svn path=/stable/6/; revision=164488
* MFC: Add the -p option to the jobs builtin.Stefan Farfeleder2006-11-224-22/+40
| | | | Notes: svn path=/stable/6/; revision=164486
* MFC: Don't crash on "<cmd> | { }".Stefan Farfeleder2006-11-221-1/+1
| | | | Notes: svn path=/stable/6/; revision=164484
* MFC: Implement the PS4 variable.Stefan Farfeleder2006-11-224-5/+22
| | | | Notes: svn path=/stable/6/; revision=164483
* MFC rev. 1.56: do not call chflags() for whiteouted files.Maxim Konovalov2006-10-291-1/+1
| | | | | | | Approved by: re (hrs) Notes: svn path=/stable/6/; revision=163769
* MFC revs. 1.50 - 1.52: prevents statistics displayed by SIGINFOMaxim Konovalov2006-10-211-13/+16
| | | | | | | | | | handler from overflow, avoid division by zero, place error checking code near to the syscall, style. Approved by: re (bmah) Notes: svn path=/stable/6/; revision=163575
* MFC: 1.100:Ruslan Ermilov2006-10-161-7/+12
| | | | | | | | | | | | | - Improve description of the -A option. - Document how whiteouts look in the long output. [1] - Sort entry types. - Fix description of the socket type. PR: docs/51921 [1] Approved by: re (hrs) Notes: svn path=/stable/6/; revision=163412
* MFC: cp.1 1.34,1.35Julian Elischer2006-09-294-83/+106
| | | | | | | | | | | | | MFC: utils.c 1.47,1.48,1.49 MFC: extern.h 1.21 MFC: cp.c 1.54 Add an option to allow copying of a hierarchy while linking the regular files. Bikeshedded to death on: hackers Submitted by:andersonatcenttech.com Approved by: re (ken) Notes: svn path=/stable/6/; revision=162757
* MFC revs 1.87, 1.88:Yaroslav Tykhiy2006-08-221-6/+8
| | | | | | | | A column title, =foo, can only be at the end of the argument to -o. Multiple column titles can be changed with the same number of -o's. Notes: svn path=/stable/6/; revision=161527
* MFC rev. 1.57:Yaroslav Tykhiy2006-08-061-0/+1
| | | | | | | | Do not forget to increment the input line counter when reading a word spanning multiple lines. Notes: svn path=/stable/6/; revision=161018
* MFC rev. 1.122:Yaroslav Tykhiy2006-08-031-2/+17
| | | | | | | | Tell more of the sh(1) history. Acknowledge Kenneth Almquist's contribution in AUTHORS. Notes: svn path=/stable/6/; revision=160953
* MFC rev. 1.24-1.25:Yaroslav Tykhiy2006-08-011-1/+14
| | | | | | | test(1) doesn't do shortcut evaluation in its logical operators. Notes: svn path=/stable/6/; revision=160873
* MFC rev. 1.121:Yaroslav Tykhiy2006-07-291-4/+9
| | | | | | | Make it easier to find that we have test(1) built-in in sh(1). Notes: svn path=/stable/6/; revision=160811
* MFC: pick up maintainer stragglers.Mark Murray2006-07-091-2/+0
| | | | Notes: svn path=/stable/6/; revision=160219
* MFC rev 1.35: Don't interpret .//dir as /dir.Stefan Farfeleder2006-06-281-2/+3
| | | | Notes: svn path=/stable/6/; revision=160010
* MFC rev. 1.120:Yaroslav Tykhiy2006-06-261-1/+5
| | | | | | | | Document the fact that 'true' and 'false' are among sh(1) built-in commands. Notes: svn path=/stable/6/; revision=159947
* MFC rev. 1.12 of setfacl.c, rev. 1.15,1.16 of setfacl.1.Konstantin Belousov2006-06-162-1/+7
| | | | | | | | | | Copy filename read from the stdin into the private buffer. Document the way to get list of files to process from the stdin. Approved by: kan (mentor) Notes: svn path=/stable/6/; revision=159662
* MFC:Stefan Farfeleder2006-06-0310-62/+130
| | | | | | | | | | | - POSIX special built-ins (builtin.defs 1.19, main.c 1.28, mkbuiltins 1.16, eval.c 1.51, exec.c 1.29, exec.h 1.15, options.c 1.25) - Fix el_gets() buffer handling (input.c 1.23). - Sort 'set' output (var.c 1.31). - Document that '#' starts a comment (sh.1 1.118). Notes: svn path=/stable/6/; revision=159191
* MFC: Add a new -U flag to instruct ls to use the birthtime for printing orJohn Baldwin2006-05-187-8/+53
| | | | | | | sorting. Notes: svn path=/stable/6/; revision=158731
* Sync with CURRENT.Tom Rhodes2006-05-171-13/+55
| | | | Notes: svn path=/stable/6/; revision=158694
* MFC: rev. 1.36Coleman Kane2006-05-151-2/+3
| | | | | | | | | | | | The -b parameter incorrectly stated that pax archives over ~32kB violate POSIX. Fixed to describe that block size larger than 32256 bytes are actually what violates POSIX. PR: docs/97059 Reviewed by: Giorgos Keramidas <keramida> Notes: svn path=/stable/6/; revision=158585
* MFC rev. 1.54: be pedantic and do fts_close() when done.Maxim Konovalov2006-05-011-0/+1
| | | | | | | Approved by: re (kensmith) Notes: svn path=/stable/6/; revision=158221
* MFC 1.76: Implement the correct fix for the bug introduced in 1.73.Garance A Drosehn2006-04-141-9/+18
| | | | | | | | | | | This time we avoid the seg-fault while still keeping the column headers in uppercase. And the original bug wrt specifying a new column header for an aliased `-o' option remains fixed. Approved by: re (scottl) Notes: svn path=/stable/6/; revision=157744
* MFC 1.75: Fix a problem introduced by previous change, which causesGarance A Drosehn2006-04-051-0/+2
| | | | | | | | | | | a seg-fault if the user specifies a keyword which is implemented as an alias to some other keyword. Submitted by: Kostik Belousov Approved by: re (scottl) Notes: svn path=/stable/6/; revision=157542
* Merge getfacl.1:1.10, getfacl.c:1.11 from HEAD to RELENG_6:Robert Watson2006-04-052-11/+20
| | | | | | | | | | | | | Add "-q" argument to getfacl(1), which suppresses the per-file header comment listing the file name, owner, and group. Submitted by: Jan Srzednicki <w at expro dot pl> Approved by: re (scottl) Reminded by: delphij Notes: svn path=/stable/6/; revision=157533
* MFC 1.73->1.74: Fix the case where the user specifies an alternateGarance A Drosehn2006-04-041-6/+11
| | | | | | | | | | | heading for some output-format keyword, and the keyword they picked is an alias to some other keyword. PR: bin/57833 Approved by: re (scottl) Notes: svn path=/stable/6/; revision=157510
* MFC 1.39Brad Davis2006-03-301-1/+1
| | | | | | | | | Fix a typo. Approved by: re@, ceri@ Notes: svn path=/stable/6/; revision=157280
* MFC:Gleb Smirnoff2006-03-182-8/+50
| | | | | | | | | | | | | Add '-F' option which allows to delete existing empty directories, when creating symbolic links. PR: bin/92149 Submitted by: Eugene Grosbein <eugen grosbein.pp.ru> Approved by: re (mux) Notes: svn path=/stable/6/; revision=156856
* MFC: Enable NLS catalog of csh(1).Hajimu UMEMOTO2006-02-262-1/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. bin/csh/Makefile: 1.38 bin/csh/config.h: 1.13 bin/csh/iconv.h: 1.1 bin/csh/iconv_stub.c: 1.1 contrib/tcsh/nls/C/charset: 1.1.1.1 contrib/tcsh/nls/et/charset 1.1.1.1 contrib/tcsh/nls/finnish/charset 1.1.1.1 contrib/tcsh/nls/french/charset 1.1.1.1 contrib/tcsh/nls/german/charset 1.1.1.1 contrib/tcsh/nls/greek/charset 1.1.1.1 contrib/tcsh/nls/italian/charset 1.1.1.1 contrib/tcsh/nls/ja/charset 1.1.1.1 contrib/tcsh/nls/pl/charset 1.1.1.1 contrib/tcsh/nls/russian/charset 1.1.1.1 contrib/tcsh/nls/spanish/charset 1.1.1.1 contrib/tcsh/nls/ukrainian/charset 1.1.1.1 Approved by: re (hrs) Notes: svn path=/stable/6/; revision=156019