yes: Remove OpenB*OS version
* Was replaced by coreutils yes, and options are the same.
This commit is contained in:
@@ -105,7 +105,6 @@ StdBinCommands
|
|||||||
version.cpp
|
version.cpp
|
||||||
waitfor.cpp
|
waitfor.cpp
|
||||||
WindowShade.cpp
|
WindowShade.cpp
|
||||||
# yes.cpp
|
|
||||||
: be : $(haiku-utils_rsrc) ;
|
: be : $(haiku-utils_rsrc) ;
|
||||||
|
|
||||||
if $(TARGET_PLATFORM) = libbe_test {
|
if $(TARGET_PLATFORM) = libbe_test {
|
||||||
|
|||||||
@@ -1,51 +0,0 @@
|
|||||||
// yes - for OpenBeOS
|
|
||||||
//
|
|
||||||
// authors, in order of contribution:
|
|
||||||
// [email protected]
|
|
||||||
//
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <String.h>
|
|
||||||
|
|
||||||
void PrintUsageInfo (void);
|
|
||||||
|
|
||||||
int main(int32 argc, char **argv)
|
|
||||||
{
|
|
||||||
if (argc > 1) // possible --help
|
|
||||||
{
|
|
||||||
BString option = argv[1];
|
|
||||||
option.ToLower();
|
|
||||||
|
|
||||||
if (option == "--help")
|
|
||||||
{
|
|
||||||
PrintUsageInfo();
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
while (1) // loop until interrupted
|
|
||||||
{
|
|
||||||
if (argc < 2) // no STRING
|
|
||||||
{
|
|
||||||
printf("y\n");
|
|
||||||
}
|
|
||||||
else // STRING(s)
|
|
||||||
{
|
|
||||||
for (int i = 1; i < argc; i++)
|
|
||||||
{
|
|
||||||
printf("%s ", argv[i]);
|
|
||||||
}
|
|
||||||
printf("\n");
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
|
|
||||||
void PrintUsageInfo (void)
|
|
||||||
{
|
|
||||||
printf ("use: yes [STRING] ...\n"
|
|
||||||
"Repeatedly output a line with all specified STRING(s), or `y'.\n");
|
|
||||||
}
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user