From 864412e02df16555c02da9ccb0a67fddb6628acd Mon Sep 17 00:00:00 2001 From: Andrey Borzenkov Date: Thu, 26 Jan 2006 02:18:01 +0100 Subject: [PATCH] man page: document when substitutions are applied for RUN and other keys --- docs/udev.xml | 8 ++++++-- udev.7 | 9 ++++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/docs/udev.xml b/docs/udev.xml index 7e2907797..e0542a6be 100644 --- a/docs/udev.xml +++ b/docs/udev.xml @@ -353,8 +353,12 @@ The , , , - and fields support simple - printf-like string substitutions: + , and + fields support simple printf-like string substitutions. The + format chars gets applied after all rules have been processed, right before the program + is executed. It allows the use of the complete environment set by earlier matching + rules. For all other fields, substitutions are applied while the individual rule is + being processed. The available substitutions are: , diff --git a/udev.7 b/udev.7 index a7e2f5a4e..711bd0861 100644 --- a/udev.7 +++ b/udev.7 @@ -164,10 +164,13 @@ The \fBNAME\fR, \fBSYMLINK\fR, \fBPROGRAM\fR, -\fBOWNER\fR -and +\fBOWNER\fR, \fBGROUP\fR -fields support simple printf\-like string substitutions: +and +\fBRUN\fR +fields support simple printf\-like string substitutions. The +\fBRUN\fR +format chars gets applied after all rules have been processed, right before the program is executed. It allows the use of the complete environment set by earlier matching rules. For all other fields, substitutions are applied while the individual rule is being processed. The available substitutions are: .TP \fB$kernel\fR, \fB%k\fR The kernel name for this device. -- 2.30.2