bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

add ifdefs for BASH_HISTORY


From: isabella parakiss
Subject: add ifdefs for BASH_HISTORY
Date: Thu, 11 Feb 2016 17:21:29 +0100

This is needed to configure with --disable-bash-history

--
xoxo iza



diff --git a/bashhist.c b/bashhist.c
index dc26d30..6a16bdf 100644
--- a/bashhist.c
+++ b/bashhist.c
@@ -229,6 +229,7 @@ bash_history_inhibit_expansion (string, i)
     return (1);
 #endif
 
+#if defined (BANG_HISTORY)
   /* Make sure the history expansion should not be skipped by quoting or
      command/process substitution. */
   else if ((t = skip_to_histexp (string, 0, hx, SD_NOJMP|SD_HISTEXP)) > 0)
@@ -243,6 +244,7 @@ bash_history_inhibit_expansion (string, i)
        }
       return (t > i);
     }
+#endif
   else
     return (0);
 }

---
xoxo iza



reply via email to

[Prev in Thread] Current Thread [Next in Thread]