anchor.diff:      ''
       # most space is taken by locale data
       else ''
  -      rm -r "$out/share" "$out/bin/bashbug"
  +      rm -rf "$out/share" "$out/bin/bashbug"
       '';
   
     meta = with stdenv.lib; {
  
positive.code: 
    patchFlags = "-p0";
  
    patches = upstreamPatches;
  
    postPatch = optionalString hostPlatform.isCygwin "patch -p2 < ${./cygwin-bash-4.4.11-2.src.patch}";
  
  
negative.code:     "bash_cv_dev_stdin=present"
      "bash_cv_dev_fd=standard"
      "bash_cv_termcap_lib=libncurses"
    ] ++ optionals (hostPlatform.libc == "musl") [
      "--without-bash-malloc"
      "--disable-nls"
    ];
  
    # Note: Bison is needed because the patches above modify parse.y.
    depsBuildBuild = [ buildPackages.stdenv.cc ];
    nativeBuildInputs = [bison]
      ++ optional (texinfo != null) texinfo
      ++ optional hostPlatform.isDarwin binutils
      ++ optional (hostPlatform.libc == "musl") autoconf;
  
    buildInputs = optional interactive readline70;
  
  