add ifdefs for BASH_HISTORY

2016-02-11 Thread isabella parakiss
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



Re: add ifdefs for BASH_HISTORY

2016-02-11 Thread Chet Ramey
On 2/11/16 11:21 AM, isabella parakiss wrote:
> This is needed to configure with --disable-bash-history

Thanks for the report.  This entire function isn't needed unless
BANG_HISTORY is defined.

Chet

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/