summaryrefslogtreecommitdiffstats
path: root/src/p_args_escape.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/p_args_escape.c')
-rw-r--r--src/p_args_escape.c14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/p_args_escape.c b/src/p_args_escape.c
index e6c9a24..6052991 100644
--- a/src/p_args_escape.c
+++ b/src/p_args_escape.c
@@ -12,11 +12,21 @@
#include <stddef.h>
+#include "d_define.h"
+
+static void
+ p_escape_arg(char *ptr)
+{
+ while (*ptr != C_NULL)
+ {
+ ptr++;
+ }
+}
+
void
p_args_escape_chars(char *words[])
{
/* TODO: escape \ */
- /* TODO: escape $vars */
/* TODO: escape $# special vars */
/* TODO: escape my life */
char **ptr;
@@ -24,7 +34,7 @@ void
ptr = words;
while (*ptr != NULL)
{
- /* if (**ptr != C_SQUOTE) */
+ p_escape_arg(*ptr);
ptr++;
}
}