@@ -36,17 +36,15 @@ stdenv.mkDerivation rec {
3636 cp ${mimisrc}/xdg-open $out/bin/xdg-open
3737 '' + ''
3838 sed '2s#.#\
39− cut() { ${coreutils}/bin/cut "$@"; }\
4039 sed() { ${gnused}/bin/sed "$@"; }\
4140 grep() { ${gnugrep}/bin/grep "$@"; }\
4241 egrep() { ${gnugrep}/bin/egrep "$@"; }\
4342 file() { ${file}/bin/file "$@"; }\
4443 awk() { ${gawk}/bin/awk "$@"; }\
45− sort() { ${coreutils}/bin/sort "$@"; }\
4644 xset() { ${xset}/bin/xset "$@"; }\
4745 perl() { PERL5LIB=${perlPath} ${perlPackages.perl}/bin/perl "$@"; }\
4846 mimetype() { ${perlPackages.FileMimeInfo}/bin/mimetype "$@"; }\
49− PATH=$PATH:'"$out"'/bin\
47+ PATH=$PATH:'$out'/bin:${coreutils}/bin\
5048 &#' -i "$out"/bin/*
5149
5250 substituteInPlace $out/bin/xdg-open \
@@ -58,7 +56,7 @@ stdenv.mkDerivation rec {
5856 substituteInPlace $out/bin/xdg-email \
5957 --replace "/bin/echo" "${coreutils}/bin/echo"
6058
61− sed 's# which # type -P #g' -i "$out"/bin/*
59+ sed 's|\bwhich\b|type -P|g' -i "$out"/bin/*
6260 '';
6361
6462 meta = with stdenv.lib; {