Unfortunately other operating systems are not consistent here, and portable scripts cannot assume the bits are set, cleared, or preserved, even when the bits are explicitly mentioned. 예를 들어, OpenBSD. mkdir m D preserves Ds setgid bit but chmod D clears it.