[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

GNU find: "print0" and "-type" arguments

I have a directory that looks like this:
├── dir
└── file
"dir" is a directory and "file" is a regular file.  I execute:
find -type d
and get the output:
This is the expected output.  However, when I execute:
find -print0 -type d
I see (on a terminal screen that does not display null characters):

The same goes for using "-type f". It appears as though find ignores the -type argument when the -print0 option is passed. Isn't this a bug?

Reply to: