head (dirname) of 'a/b/c' is 'a/b' head (dirname) of 'def' is '.' head (dirname) of 'a.b.c' is '.' head (dirname) of 'a.b/c' is 'a.b' head (dirname) of 'a' is '.' head (dirname) of 'a.a' is '.' head (dirname) of '.gitignore' is '.' head (dirname) of 'a' is '.' head (dirname) of 'a.a' is '.' head (dirname) of 'trailing/' is 'trailing' exit status 0