CONFLICT(1)
π CONFLICT(1) β the manual page, but make it a group chat π
okay bestie, welcome to conflict, a lil User command that's literally just here to spill the tea on your filename conflicts. no cap. π«Ά
β¨ NAME β¨
conflict β filename conflict listing πΈ
β¨ SYNOPSIS β¨
conflict [options] [file-specifications]
β¨ DESCRIPTION β¨
So here's the vibe: conflict shows you all the conflicting filenames hanging out in your execution path. And like, unlike the csh command which? it shows all of the (non-alias) executable files in your path. all of them. the whole squad. π
Here's how it does its thing: conflict reports pathname conflicts by making a list of the directories that are listed in the environment variable PATH, and then it scans those directories for executable files. If you give it arguments, the test for executable files gets limited to the names you gave it (after stripping the directory-prefix, obviously π
).
The first instance of a name in a given path (and those hard-linked to it) gets marked with "*". The ones that come after it get marked with "+" marks. iconic behavior honestly.
The report goes to standard output and it always shows you the list of directories. Conflicting names are reported on the succeeding lines. periodt. β¨
β¨ OPTIONS β¨
-cβ do not ignore case when comparing filenames (go peek at-ifor the flip side of this).-ename β specify a different environment variable thanPATH(like, say,INFOPATHorLD_LIBRARY_PATH, you get it).-Ipath β for compatibility with C-preprocessor options, build up the search path with the given directory. (The matching-Dand-Uoptions are ignored, they're just there for the vibe.) Heads up: using-Ior-Loverrides the use of environment variables for the search path. π-iβ ignore case when comparing filenames (see-c).-Lpath β for compatibility with C-compiler options, build up the search path with the given directory.-pβ print pathnames only, rather than the table. no table bestie, just names. π-rβ look for readable files π-ttypes β specify a list of file types that get treated as conflicting. The option value is a list of file suffixes (a"."followed by zero or more other characters). The list separator is the"."which begins each suffix, like:
conflict -t.exe.com
If you don't give a -t option at all, a built-in list of executable file types gets used for systems where this is known. π¦
-vβ Use verbose option to control how much is shown. Repeat the option for different levels:1β show all directory names2β show all filenames which are found in the directories3β directsconflictnot only to print a summary line for each file, but also to print a running summary, showing executable file (with its full path) as it is found). π₯
-Vβ print the version, exit. bye bestie π-wβ look for writable files-Wnumber β expand width of display by number of columns (default: one column per path).-xβ look for executable files (the default). the classic. the moment. β¨
You may combine the "-r", "-w" and "-x" options, they play nice together π«Ά. And if you don't specify one of these, conflict just assumes "-x". no thoughts, default head.
β¨ OPERATIONS β¨
You can use conflict to list all the conflicting names in your path (if you give it no arguments), or to find conflicts for one specific name. And if you wanna list only conflicts from a particular directory path, you may type:
conflict -a path/*
An example of the use of conflict is shown below π
bsd4.2(5) conflict
Current working directory is "/home/dickey/src/conflict"
-> .
--> /home/dickey/bin
---> /home/dickey/com
----> /bin
-----> /usr/bin
------> /usr/ucb
-------> /usr/local/bin
-*----+: args
----*-+: calendar
---*--+: cc
*+-----: conflict
...
the arrows?? the asterisks?? it's giving tree diagram but make it chaos π
β¨ ENVIRONMENT β¨
conflict runs in a POSIX environment, as well as MSDOS, Win32 and OS/2 command-line. versatile queen. π
β¨ FILES β¨
conflict is a single binary module, which uses no auxiliary files. self-sufficient. main character energy only, no entourage. π
β¨ ANTICIPATED CHANGES β¨
- add option to get aliases from the shell
- handle compound directory structures such as
MANPATH. - show symbol conflicts from object files and libraries.
(someday bestie, someday πΈ)
β¨ AUTHORS β¨
Thomas Dickey π«Ά
β¨ SEE ALSO β¨
and that's the whole page bestie, we ate and left zero crumbs π this was Check filename-conflicts, version-dated 2024-04-29, filed under CONFLICT(1) in the manual β mwah, tysm for reading, go check your PATH fr fr β¨ππ¦
π¦ where this page comes from
- fedora 43: conflict 20250117-4.fc43 Β· MIT
- fedora 44: conflict 20250930-1.fc44 Β· MIT
- Copyright 1995-2022,2024 by Thomas E. Dickey. All Rights Reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms