aboutsummaryrefslogtreecommitdiffstats
path: root/copy_cmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'copy_cmd.c')
-rw-r--r--copy_cmd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/copy_cmd.c b/copy_cmd.c
index 7020c60..911d34f 100644
--- a/copy_cmd.c
+++ b/copy_cmd.c
@@ -113,7 +113,15 @@ copy_redirect (redirect)
REDIRECT *new_redirect;
new_redirect = (REDIRECT *)xmalloc (sizeof (REDIRECT));
+#if 0
FASTCOPY ((char *)redirect, (char *)new_redirect, (sizeof (REDIRECT)));
+#else
+ *new_redirect = *redirect; /* let the compiler do the fast structure copy */
+#endif
+
+ if (redirect->rflags & REDIR_VARASSIGN)
+ new_redirect->redirector.filename = copy_word (redirect->redirector.filename);
+
switch (redirect->instruction)
{
case r_reading_until: