diff options
author | maximilian attems <max@stro.at> | 2011-05-10 15:30:43 +0200 |
---|---|---|
committer | maximilian attems <max@stro.at> | 2011-05-10 15:32:04 +0200 |
commit | 45f64f5352a0a16b869174de6875f8bf7636939d (patch) | |
tree | 7d3b3edcbb5e7d4c066235057574c8354ebb9c84 | |
parent | 46a0f831582629612f0ff9707ad1292887f26bff (diff) | |
download | klibc-45f64f5352a0a16b869174de6875f8bf7636939d.tar.gz |
[klibc] ipconfig: comment new escape function
Document it's logic for the reader.
Signed-off-by: maximilian attems <max@stro.at>
-rw-r--r-- | usr/kinit/ipconfig/main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/usr/kinit/ipconfig/main.c b/usr/kinit/ipconfig/main.c index a577b2d04f6b9..4833bb7db8b8f 100644 --- a/usr/kinit/ipconfig/main.c +++ b/usr/kinit/ipconfig/main.c @@ -95,6 +95,11 @@ static void configure_device(struct netdev *dev) dev->hostname, dev->name); } +/* + * Escape shell varialbes in git style: + * Always start with a single quote ('), then leave all characters + * except ' and ! unchanged. + */ static void write_option(FILE* f, const char* name, const char* chr) { |