Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
161 changes: 121 additions & 40 deletions src/uu/test/locales/en-US.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -8,63 +8,144 @@ test-after-help = Exit with the status determined by EXPRESSION.

An omitted EXPRESSION defaults to false.
Otherwise, EXPRESSION is true or false and sets exit status.

It is one of:

- ( EXPRESSION ) EXPRESSION is true
- ! EXPRESSION EXPRESSION is false
- EXPRESSION1 -a EXPRESSION2 both EXPRESSION1 and EXPRESSION2 are true
- EXPRESSION1 -o EXPRESSION2 either EXPRESSION1 or EXPRESSION2 is true
( EXPRESSION )
EXPRESSION is true

! EXPRESSION
EXPRESSION is false

EXPRESSION1 -a EXPRESSION2
both EXPRESSION1 and EXPRESSION2 are true

EXPRESSION1 -o EXPRESSION2
either EXPRESSION1 or EXPRESSION2 is true

String operations:
- -n STRING the length of STRING is nonzero
- STRING equivalent to -n STRING
- -z STRING the length of STRING is zero
- STRING1 = STRING2 the strings are equal
- STRING1 != STRING2 the strings are not equal

-n STRING
the length of STRING is nonzero

STRING
equivalent to -n STRING

-z STRING
the length of STRING is zero

STRING1 = STRING2
the strings are equal

STRING1 != STRING2
the strings are not equal

STRING1 > STRING2
STRING1 is greater than STRING2 in the current locale

STRING1 < STRING2
STRING1 is less than STRING2 in the current locale

Integer comparisons:
- INTEGER1 -eq INTEGER2 INTEGER1 is equal to INTEGER2
- INTEGER1 -ge INTEGER2 INTEGER1 is greater than or equal to INTEGER2
- INTEGER1 -gt INTEGER2 INTEGER1 is greater than INTEGER2
- INTEGER1 -le INTEGER2 INTEGER1 is less than or equal to INTEGER2
- INTEGER1 -lt INTEGER2 INTEGER1 is less than INTEGER2
- INTEGER1 -ne INTEGER2 INTEGER1 is not equal to INTEGER2

INTEGER1 -eq INTEGER2
INTEGER1 is equal to INTEGER2

INTEGER1 -ge INTEGER2
INTEGER1 is greater than or equal to INTEGER2

INTEGER1 -gt INTEGER2
INTEGER1 is greater than INTEGER2

INTEGER1 -le INTEGER2
INTEGER1 is less than or equal to INTEGER2

INTEGER1 -lt INTEGER2
INTEGER1 is less than INTEGER2

INTEGER1 -ne INTEGER2
INTEGER1 is not equal to INTEGER2

File operations:
- FILE1 -ef FILE2 FILE1 and FILE2 have the same device and inode numbers
- FILE1 -nt FILE2 FILE1 is newer (modification date) than FILE2
- FILE1 -ot FILE2 FILE1 is older than FILE2

- -b FILE FILE exists and is block special
- -c FILE FILE exists and is character special
- -d FILE FILE exists and is a directory
- -e FILE FILE exists
- -f FILE FILE exists and is a regular file
- -g FILE FILE exists and is set-group-ID
- -G FILE FILE exists and is owned by the effective group ID
- -h FILE FILE exists and is a symbolic link (same as -L)
- -k FILE FILE exists and has its sticky bit set
- -L FILE FILE exists and is a symbolic link (same as -h)
- -N FILE FILE exists and has been modified since it was last read
- -O FILE FILE exists and is owned by the effective user ID
- -p FILE FILE exists and is a named pipe
- -r FILE FILE exists and read permission is granted
- -s FILE FILE exists and has a size greater than zero
- -S FILE FILE exists and is a socket
- -t FD file descriptor FD is opened on a terminal
- -u FILE FILE exists and its set-user-ID bit is set
- -w FILE FILE exists and write permission is granted
- -x FILE FILE exists and execute (or search) permission is granted

FILE1 -ef FILE2
FILE1 and FILE2 have the same device and inode numbers

FILE1 -nt FILE2
FILE1 is newer (modification date) than FILE2

FILE1 -ot FILE2
FILE1 is older than FILE2

-b FILE
FILE exists and is block special

-c FILE
FILE exists and is character special

-d FILE
FILE exists and is a directory

-e FILE
FILE exists

-f FILE
FILE exists and is a regular file

-g FILE
FILE exists and is set-group-ID

-G FILE
FILE exists and is owned by the effective group ID

-h FILE
FILE exists and is a symbolic link (same as -L)

-k FILE
FILE exists and has its sticky bit set

-L FILE
FILE exists and is a symbolic link (same as -h)

-N FILE
FILE exists and has been modified since it was last read

-O FILE
FILE exists and is owned by the effective user ID

-p FILE
FILE exists and is a named pipe

-r FILE
FILE exists and read permission is granted

-s FILE
FILE exists and has a size greater than zero

-S FILE
FILE exists and is a socket

-t FD
file descriptor FD is opened on a terminal

-u FILE
FILE exists and its set-user-ID bit is set

-w FILE
FILE exists and write permission is granted

-x FILE
FILE exists and execute (or search) permission is granted

Except for -h and -L, all FILE-related tests dereference (follow) symbolic links.
Beware that parentheses need to be escaped (e.g., by backslashes) for shells.
INTEGER may also be -l STRING, which evaluates to the length of STRING.

NOTE: Binary -a and -o are inherently ambiguous.
Use test EXPR1 && test EXPR2 or test EXPR1 || test EXPR2 instead.

NOTE: {"["} honors the --help and --version options, but test does not.
test treats each of those as it treats any other nonempty STRING.

NOTE: your shell may have its own version of test and/or {"["}, which usually supersedes the version described here.
Please refer to your shell's documentation for details about the options it supports.

Expand Down
161 changes: 121 additions & 40 deletions src/uu/test/locales/fr-FR.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -8,63 +8,144 @@ test-after-help = Quitter avec le statut déterminé par EXPRESSION.

Une EXPRESSION omise vaut false par défaut.
Sinon, EXPRESSION est true ou false et définit le statut de sortie.

Il peut s'agir de :

- ( EXPRESSION ) EXPRESSION est vraie
- ! EXPRESSION EXPRESSION est fausse
- EXPRESSION1 -a EXPRESSION2 EXPRESSION1 et EXPRESSION2 sont toutes deux vraies
- EXPRESSION1 -o EXPRESSION2 EXPRESSION1 ou EXPRESSION2 est vraie
( EXPRESSION )
EXPRESSION est vraie

! EXPRESSION
EXPRESSION est fausse

EXPRESSION1 -a EXPRESSION2
EXPRESSION1 et EXPRESSION2 sont toutes deux vraies

EXPRESSION1 -o EXPRESSION2
EXPRESSION1 ou EXPRESSION2 est vraie

Opérations sur les chaînes :
- -n STRING la longueur de STRING est non nulle
- STRING équivalent à -n STRING
- -z STRING la longueur de STRING est nulle
- STRING1 = STRING2 les chaînes sont égales
- STRING1 != STRING2 les chaînes ne sont pas égales

-n STRING
la longueur de STRING est non nulle

STRING
équivalent à -n STRING

-z STRING
la longueur de STRING est nulle

STRING1 = STRING2
les chaînes sont égales

STRING1 != STRING2
les chaînes ne sont pas égales

STRING1 > STRING2
STRING1 est plus grande que STRING2 dans les paramètres régionaux actuels

STRING1 < STRING2
STRING1 est plus petite que STRING2 dans les paramètres régionaux actuels

Comparaisons d'entiers :
- INTEGER1 -eq INTEGER2 INTEGER1 est égal à INTEGER2
- INTEGER1 -ge INTEGER2 INTEGER1 est supérieur ou égal à INTEGER2
- INTEGER1 -gt INTEGER2 INTEGER1 est supérieur à INTEGER2
- INTEGER1 -le INTEGER2 INTEGER1 est inférieur ou égal à INTEGER2
- INTEGER1 -lt INTEGER2 INTEGER1 est inférieur à INTEGER2
- INTEGER1 -ne INTEGER2 INTEGER1 n'est pas égal à INTEGER2

INTEGER1 -eq INTEGER2
INTEGER1 est égal à INTEGER2

INTEGER1 -ge INTEGER2
INTEGER1 est supérieur ou égal à INTEGER2

INTEGER1 -gt INTEGER2
INTEGER1 est supérieur à INTEGER2

INTEGER1 -le INTEGER2
INTEGER1 est inférieur ou égal à INTEGER2

INTEGER1 -lt INTEGER2
INTEGER1 est inférieur à INTEGER2

INTEGER1 -ne INTEGER2
INTEGER1 n'est pas égal à INTEGER2

Opérations sur les fichiers :
- FILE1 -ef FILE2 FILE1 et FILE2 ont les mêmes numéros de périphérique et d'inode
- FILE1 -nt FILE2 FILE1 est plus récent (date de modification) que FILE2
- FILE1 -ot FILE2 FILE1 est plus ancien que FILE2

- -b FILE FILE existe et est un fichier spécial de type bloc
- -c FILE FILE existe et est un fichier spécial de type caractère
- -d FILE FILE existe et est un répertoire
- -e FILE FILE existe
- -f FILE FILE existe et est un fichier régulier
- -g FILE FILE existe et a le bit set-group-ID
- -G FILE FILE existe et appartient à l'ID de groupe effectif
- -h FILE FILE existe et est un lien symbolique (identique à -L)
- -k FILE FILE existe et a son bit sticky défini
- -L FILE FILE existe et est un lien symbolique (identique à -h)
- -N FILE FILE existe et a été modifié depuis sa dernière lecture
- -O FILE FILE existe et appartient à l'ID utilisateur effectif
- -p FILE FILE existe et est un tube nommé
- -r FILE FILE existe et la permission de lecture est accordée
- -s FILE FILE existe et a une taille supérieure à zéro
- -S FILE FILE existe et est un socket
- -t FD le descripteur de fichier FD est ouvert sur un terminal
- -u FILE FILE existe et son bit set-user-ID est défini
- -w FILE FILE existe et la permission d'écriture est accordée
- -x FILE FILE existe et la permission d'exécution (ou de recherche) est accordée

FILE1 -ef FILE2
FILE1 et FILE2 ont les mêmes numéros de périphérique et d'inode

FILE1 -nt FILE2
FILE1 est plus récent (date de modification) que FILE2

FILE1 -ot FILE2
FILE1 est plus ancien que FILE2

-b FILE
FILE existe et est un fichier spécial de type bloc

-c FILE
FILE existe et est un fichier spécial de type caractère

-d FILE
FILE existe et est un répertoire

-e FILE
FILE existe

-f FILE
FILE existe et est un fichier régulier

-g FILE
FILE existe et a le bit set-group-ID

-G FILE
FILE existe et appartient à l'ID de groupe effectif

-h FILE
FILE existe et est un lien symbolique (identique à -L)

-k FILE
FILE existe et a son bit sticky défini

-L FILE
FILE existe et est un lien symbolique (identique à -h)

-N FILE
FILE existe et a été modifié depuis sa dernière lecture

-O FILE
FILE existe et appartient à l'ID utilisateur effectif

-p FILE
FILE existe et est un tube nommé

-r FILE
FILE existe et la permission de lecture est accordée

-s FILE
FILE existe et a une taille supérieure à zéro

-S FILE
FILE existe et est un socket

-t FD
le descripteur de fichier FD est ouvert sur un terminal

-u FILE
FILE existe et son bit set-user-ID est défini

-w FILE
FILE existe et la permission d'écriture est accordée

-x FILE
FILE existe et la permission d'exécution (ou de recherche) est accordée

À l'exception de -h et -L, tous les tests liés aux FILE déréférencent (suivent) les liens symboliques.
Attention : les parenthèses doivent être échappées (par exemple, par des barres obliques inverses) pour les shells.
INTEGER peut aussi être -l STRING, qui évalue la longueur de STRING.

NOTE : Les -a et -o binaires sont intrinsèquement ambigus.
Utilisez test EXPR1 && test EXPR2 ou test EXPR1 || test EXPR2 à la place.

NOTE : {"["} honore les options --help et --version, mais test ne le fait pas.
test traite chacune de celles-ci comme il traite toute autre STRING non vide.

NOTE : votre shell peut avoir sa propre version de test et/ou {"["}, qui remplace généralement la version décrite ici.
Veuillez vous référer à la documentation de votre shell pour les détails sur les options qu'il prend en charge.

Expand Down
Loading