#! /bin/bash #+ # NAME: # fd # PURPOSE: # Kinda-kludgy-but-it-works wrapper for executable fd # RESTRICTIONS: # Not been fully tested # PROCEDURE: # The script has to be sourced, rather than directly executed. # Libsd writes the proper CD command into the file $TUB/OSExitCmd.tmp # The script executes sd, checks for the existence of the temporary # file; executes the contents and deletes it. #- if [ -f $TUB/OSExitCmd.tmp ] then rm $TUB/OSExitCmd.tmp fi $EXE/sd $1 $2 $3 $4 $5 if [ -f $TUB/OSExitCmd.tmp ] then $(cat $TUB/OSExitCmd.tmp) rm $TUB/OSExitCmd.tmp fi