Displaying 1 result from an estimated 1 matches for "noclobber_redirect".
1999 Feb 10
1
When a shell says no (clobber) it means maybe.
...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) && (S_ISREG (finfo.st_mode)))
2837 {
2838 free (redirectee_word);
2839 return (NOCLOBBER_REDIRECT);
2840 }
2841
2842 /* If the file was not present, make sure we open it exclusively
2843 so that if it is created before we open it, our open will fail. */
2844 if (stat_result != 0)
2845 redirect->flags |= O_EXCL;
2846
2847 fd = open (redirectee_word, redirect-...