Applied patch from Christophe Boyanique to add -i support to rm.

This commit is contained in:
Mark Whitley
2001-03-13 00:40:19 +00:00
parent 53737c5421
commit e0bf91d7c6
11 changed files with 101 additions and 0 deletions

View File

@@ -1859,6 +1859,24 @@ void trim(char *s)
}
#endif
#ifdef BB_FEATURE_RM_INTERACTIVE
#if defined (BB_CP_MV) || defined (BB_RM)
int ask_confirmation()
{
int c = '\0';
int ret = 0;
while (c != '\n') {
c = getchar();
if ( c != '\n' ) {
ret = ((c=='y')||(c=='Y')) ? 1 : 0;
}
}
return ret;
}
#endif
#endif
/* END CODE */
/*
Local Variables: