ls(1): Gate the do_color_* definitions behind COLORLSPointy hat to: me
ls(1): Support other aliases for --color arguments used by GNU ls(1)These aliases are supported and documented in the man page. For now, theywill not be mentioned in the error when an invalid argu
ls(1): Support other aliases for --color arguments used by GNU ls(1)These aliases are supported and documented in the man page. For now, theywill not be mentioned in the error when an invalid argument is encountered,instead keeping that list to the shorter 'preferred' names of each argument.Reported by: rgrimes
show more ...
ls(1): Add --color=when--color may be set to one of: 'auto', 'always', and 'never'.'auto' is the default behavior- output colors only if -G or COLORTERM areset, and only if stdout is a tty.'al
ls(1): Add --color=when--color may be set to one of: 'auto', 'always', and 'never'.'auto' is the default behavior- output colors only if -G or COLORTERM areset, and only if stdout is a tty.'always' is a new behavior- output colors always. termcap(5) will beconsulted unless TERM is unset or not a recognized terminal, in which casels(1) will fall back to explicitly outputting ANSI escape sequences.'never' to turn off any environment variable and -G usage.Reviewed by: cem, 0mp (both modulo last-minute manpage changesDifferential Revision: https://reviews.freebsd.org/D16741
ls(1): Fix color env var checkingCLICOLOR will behavior as always- if present at all in the environment,allow colors.COLORTERM, recently enforced, will have to be both present and not empty.Su
ls(1): Fix color env var checkingCLICOLOR will behavior as always- if present at all in the environment,allow colors.COLORTERM, recently enforced, will have to be both present and not empty.Submitted by: imp
ls(1): Enable colors with COLORTERM is set in the environmentCOLORTERM is the de facto standard, while CLICOLOR is generally specific toFreeBSD and ls(1).PR: 230101Submitted by: D Green <dfrg@
ls(1): Enable colors with COLORTERM is set in the environmentCOLORTERM is the de facto standard, while CLICOLOR is generally specific toFreeBSD and ls(1).PR: 230101Submitted by: D Green <[email protected]> (with manpage additions by myself)Reviewed by: cem ("LGTM" in PR; pre-manpage changes)MFC after: 1 week
Convert ls(1) to not use libxo(3)libxo imposes a large burden on system utilities. In the case of ls, thatburden is difficult to justify -- any language that can interact with jsonoutput can use
Convert ls(1) to not use libxo(3)libxo imposes a large burden on system utilities. In the case of ls, thatburden is difficult to justify -- any language that can interact with jsonoutput can use readdir(3) and stat(2).Logically, this reverts r291607, r285857, r285803, r285734, r285425,r284494, r284489, r284252, and r284198.Kyua tests continue to pass (libxo integration was entirely untested).Reported by: manyReviewed by: impDiscussed with: manu, bdrewerySponsored by: Dell EMC IsilonDifferential Revision: https://reviews.freebsd.org/D13959
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier f
General further adoption of SPDX licensing ID tags.Mainly focus on files that use BSD 3-Clause license.The Software Package Data Exchange (SPDX) group provides a specificationto make it easier for automated tools to detect and summarize well knownopensource licenses. We are gradually adopting the specification, notingthat the tags are considered only advisory and do not, in any way,superceed or replace the license texts.Special thanks to Wind River for providing access to "The Duke ofHighlander" tool: an older (2014) run over FreeBSD tree was useful as astarting point.
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Add HAS_TESTS to all Makefiles that are currently using the`SUBDIR.${MK_TESTS}+= tests` idiom.This is a follow up to r321912.
Convert traditional ${MK_TESTS} conditional idiom for including testdirectories to SUBDIR.${MK_TESTS} idiomThis is being done to pave the way for future work (and homogenity) in^/projects/make-ch
Convert traditional ${MK_TESTS} conditional idiom for including testdirectories to SUBDIR.${MK_TESTS} idiomThis is being done to pave the way for future work (and homogenity) in^/projects/make-check-sandbox .No functional change intended.MFC after: 1 weeks
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is
Renumber copyright clause 4Renumber cluase 4 to 3, per what everybody else did when BSD grantedthem permission to remove clause 3. My insistance on keeping the samenumbering for legal reasons is too pedantic, so give up on that point.Submitted by: Jan Schaumann <[email protected]>Pull Request: https://github.com/freebsd/freebsd/pull/96
Use uintmax_t to print st_nlink.Sponsored by: The FreeBSD FoundationMFC after: 1 week
Fix ls_tests:o_flag with ZFS TMPDIRUnlike UFS or TMPFS, ZFS sets uarch automatically whenever a file isupdated. The test must explicitly clear uarch to be portable acrossfilesystems. Also, it doe
Fix ls_tests:o_flag with ZFS TMPDIRUnlike UFS or TMPFS, ZFS sets uarch automatically whenever a file isupdated. The test must explicitly clear uarch to be portable acrossfilesystems. Also, it doesn't need to run as root.PR: 215179MFC after: 4 weeksSponsored by: Spectra Logic CorpDifferential Revision: https://reviews.freebsd.org/D8741
Skip ls tests that use sparse files if these are not supported.Some of the ls(1) tests create really large sparse files to validatethe number formatting features of ls(1). Unfortunately, those te
Skip ls tests that use sparse files if these are not supported.Some of the ls(1) tests create really large sparse files to validatethe number formatting features of ls(1). Unfortunately, those tests failif the underlying test file system does not support sparse files, as is thecase when /tmp is mounted on tmpfs.Before running these tests, check if the test file system supports sparsefiles by using getconf(1) and skip them if not. Note that the support forthis query was just added to getconf(1) in r304694.Reviewed by: ngieDifferential Revision: https://reviews.freebsd.org/D7609
Use require.progs with bc instead of require.files with /usr/bin/bcThis will make things more flexible if the program path changes in the future,and the test in and of itself doesn't call /usr/bin
Use require.progs with bc instead of require.files with /usr/bin/bcThis will make things more flexible if the program path changes in the future,and the test in and of itself doesn't call /usr/bin/bc -- it just calls bcMFC after: 1 weekSponsored by: EMC / Isilon Storage Division
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedafter r298107Summary of changes:- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that na
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedafter r298107Summary of changes:- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed- Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc- Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously.- Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk- Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk.- Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo- Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)Document the proposed changes in share/examples/tests/tests/... via examplesso it's clear that ${PACKAGES}FILES is the suggested way forward in terms ofreplacing FILES. share/mk/bsd.README didn't seem like the appropriate methodof communicating that info.MFC after: never probablyX-MFC with: r298107PR: 209114Relnotes: yesTested with: buildworld, installworld, checkworld; buildworld, packageworldSponsored by: EMC / Isilon Storage Division
DIRDEPS_BUILD: Connect MK_TESTS.Sponsored by: EMC / Isilon Storage Division
Avoid adding the '-release' suffix to non-debug kernel packages.Sponsored by: The FreeBSD Foundation
Fix ls -l alignement with new localesLatest update of locales introduced abbreviated month that follows the regionalerules meaning that they can be of variable length instead of being arbitrarytr
Fix ls -l alignement with new localesLatest update of locales introduced abbreviated month that follows the regionalerules meaning that they can be of variable length instead of being arbitrarytruncated to top 3 characters.To fix alignement, ls now computes the visible length of the abbreviated month,pads the shorter month with spaces in order to make sure everything is properlyalignedReviewed by: ache, ed, jillesDifferential Revision: https://reviews.freebsd.org/D4239
Enable bin/ls testcases disabled previously because of issues with howkyua 0.11's version of report-junit was rendering non-printable charactersUpgrade to kyua 0.12 to obtain a fixed version of th
Enable bin/ls testcases disabled previously because of issues with howkyua 0.11's version of report-junit was rendering non-printable charactersUpgrade to kyua 0.12 to obtain a fixed version of the commandOutput verified with python 2.7.10's xml.dom.minidom moduleMFC after: 3 daysSponsored by: EMC / Isilon Storage Division
Add more text to explain --libxo flag.
Update ls -l tests to use mtime, not birthtimePR: 204155Reviewed by: ngie, rodrigcSponsored by: The FreeBSD FoundationDifferential Revision: https://reviews.freebsd.org/D4040
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andnetbsd-tests.test.mk (r289151)- Eliminate explicit OBJTOP/SRCTOP setting- Convert all ad hoc NetBSD test integration
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andnetbsd-tests.test.mk (r289151)- Eliminate explicit OBJTOP/SRCTOP setting- Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk- Remove unnecessary TESTSDIR setting- Use SRCTOP where possible for clarityMFC after: 2 weeksSponsored by: EMC / Isilon Storage Divison
Remove all of the syncsThey're unnecessary as shown by further testing on my VMRequested by: jhb
Call sync consistently using atf_checkRemove superfluous sync's
12345678910>>...12