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 '.' 10head (dirname) of 'trailing/' is 'trailing' 11exit status 0 12