echo 'X/foo/bar' | \sed -f test/data/basename.sed