mybin

my ~/bin
git clone https://a3nm.net/git/mybin/
Log | Files | Refs | README

unwrap (212B)


      1 #!/bin/sh
      2 # takes a wrapper script name and returns the wrapped program on stdout
      3 
      4 oldpath=${PATH}
      5 here=`dirname $1`
      6 export PATH=`echo ${PATH} | sed -e "s_${here}:__g"`
      7 which `basename $1`
      8 export PATH=${oldpath}