#!/bin/bash ############################################################################## ## Author: Robert Miesen ## Date Created: 01/21/2008 ## Last Modification Date: Time-stamp: <01/21/2008 by Robert Miesen> ## Filename: lnBug ## ## Overview: ## Aids in the reproduction of the 'ln -s Dir /path/to/destDir/Dir' bug. ## ## Input: ## -- None ## ## Output: ## -- A broken symbolic link to 'Dir' in /path/to/DestDir/ ############################################################################## ## First, setup the directories and switch to the root of the directory tree mkdir -p LnBugDir/Dir LnBugDir/path/to/DestDir/ cd LnBugDir ## Now create a symbolic link to 'Dir' in /path/to/DestDir/ ln -s Dir ./path/to/DestDir/Dir ## Now demonstrate that the created symbolic link is broken file ./path/to/DestDir/Dir ## RJM: This will proudly declare that the symlink is broken and that it's ## a symlink to 'Dir', not "$(pwd)/Dir"