search for: fnoclobb

Displaying 1 result from an estimated 1 matches for "fnoclobb".

Did you mean: fnoclobber
1999 Feb 10
1
When a shell says no (clobber) it means maybe.
.../some/old/target /tmp/predicted Is there some reason (such as standards or a situation I've overlooked) why they should do this and not say noclobber => O_EXCL, end of story ? exec.c from pdksh-5.2.12 1293 case IOWRITE: 1294 flags = O_WRONLY | O_CREAT | O_TRUNC; 1295 if (Flag(FNOCLOBBER) && !(iop->flag & IOCLOB) 1296 && (stat(cp, &statb) < 0 || S_ISREG(statb.st_mode))) 1297 flags |= O_EXCL; 1298 break; execute_cmd.c from bash-1.14.7 2834 stat_result = stat (redirectee_word, &finfo); 2835 2836 if ((stat_result == 0) &...