1head (dirname) of 'a/b/c' is 'a/b' 2head (dirname) of 'def' is '.' 3head (dirname) of 'a.b.c' is '.' 4head (dirname) of 'a.b/c' is 'a.b' 5head (dirname) of 'a' is '.' 6head (dirname) of 'a.a' is '.' 7head (dirname) of '.gitignore' is '.' 8head (dirname) of 'a' is '.' 9head (dirname) of 'a.a' is '.' 10exit status 0 11