Key facts
- Software.name
- dirname
- Software.developer
- Various open-source and commercial developers
- Software.programming language
- C
- Software.operating system
- Unix, Unix-like, IBM i
- Software.platform
- Cross-platform
- Software.genre
- Command
- Software.license
- coreutils: GPLv3+
via Wikipedia infobox
Described at
dirname
pubs.opengroup.org →Provide a default value for the internationalization variables that are unset or null. (See XBD Internationalization Variables for the precedence of internationalization variables used to determine the values of locale categories.) If set to a non-empty string value, override the values of all the other internationalization variables. Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error. [XSI) ] ![[Option Start]]( Determine the location of message catalogs for the processing of LC MESSAGES. ![[Option End]]( The definition of pathname specifies implementation-defined behavior for pathnames starting with two characters. Therefore, applications shall not arbitrarily add characters to the beginning of a pathname unless they can ensure that there are more or less than two or are prepared to deal with the implementation-defined consequences. The EXAMPLES section of the basename () function (see XSH basename ) includes a table showing examples of the results of processing several sample pathnames by the basename () and dirname () functions and by the basename and dirname utilities. This would not work for the versions of these utilities in early proposals due to the way processing of trailing characters was specified. Consideration was given to leaving processing unspecified if there were trailing characters, but this cannot be done; XBD Pathname allows trailing characters. The basename and dirname utilities have to specify consistent handling for all valid pathnames.
Excerpt from a page describing this subject · 8,154 chars · not written by Vinony
Wikidata facts
- Part of
- GNU Core Utilities
- Image
- Dirname example.png
Show 1 more fact
- described at URL
- pubs.opengroup.org/onlinepubs/9699919799/utilities/dirname.html
via Wikidata · CC0
Article · Español
dirname es una instrucción de unix. Espera que su primer argumento sea el nombre de un fichero del sistema operativo compuesto por una serie de directorios seguidos del nombre del fichero, separados por / como es habitual. dirname muestra por la salida estándar el camino de directorios que preceden al fichero, eliminando el nombre de éste. La sintaxis es: dirname fich Nota: dirname "$A" es equivalente a echo "${A##*/}"
Abstract from DBpedia / Wikipedia · CC BY-SA