patches

Patches for various other programs
git clone https://git.regexghost.com/patches.git
Log | Files | Refs | README

oksh-history.diff (307B)


      1 diff --git a/history.c b/history.c
      2 index ce599a2..8380bda 100644
      3 --- a/history.c
      4 +++ b/history.c
      5 @@ -660,6 +660,10 @@ histsave(int lno, const char *cmd, int dowrite)
      6  {
      7  	char		*c, *cp;
      8  
      9 +	if (!strcmp(cmd, "ls\n") || !strcmp(cmd, "l\n")) {
     10 +		return;
     11 +	}
     12 +
     13  	if (ignorespace && cmd[0] == ' ')
     14  		return;
     15