Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
VERSION=`bash --version|egrep -o "[0-9].[0-9].[0-9]+"`
echo "current bash version $VERSION"
VER="${VERSION%.*}"
echo "bash major version $VER"
PATCHLVL="${VER//.}"
echo "patch level $PATCHLVL"
echo "downloading bash source code"
#include<stdio.h>
#include<stdlib.h>
#define N 10L
#define GET_VALUE(i, j, k, l) (N * N * N * i + N * N * j + N * k + l)
#ifndef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#endif
int quad_array[N][N][N][N];
#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <search.h>
#define ARRAY_SZ (10965116)
#if 0
void *__real_malloc (size_t);