VirtualBox

Changeset 1304 in kBuild


Ignore:
Timestamp:
Dec 2, 2007 12:26:47 AM (17 years ago)
Author:
bird
Message:

Added some append options too.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sed/sed/sed.c

    r1301 r1304  
    119119                 disable all GNU extensions.\n"));
    120120#ifndef CONFIG_WITHOUT_O_OPT
    121   fprintf(out, _("  -o, --output=file, --output-text=file, --output-binary=file\n\
    122                  use the specified file instead of stdout; the first two uses\n\
    123                  uses the default text/binary mode.\n"));
     121  fprintf(out, _("  -o, --output=file, --append=file, --output-text=file,\n"));
     122  fprintf(out, _("  --output-binary=file, --append-text=file, append-binary=file\n\
     123                 use the specified file instead of stdout; the first\n\
     124                 three uses the default text/binary mode.\n"));
    124125#endif
    125126  fprintf(out, _("  -r, --regexp-extended\n\
     
    185186    {"output-binary", 1, NULL, 300},
    186187    {"output-text", 1, NULL, 301},
     188    {"append", 1, NULL, 302},
     189    {"append-binary", 1, NULL, 303},
     190    {"append-text", 1, NULL, 304},
    187191#endif
    188192    {"version", 0, NULL, 'v'},
     
    298302          sed_stdout = ck_fopen (optarg, "wt", true /* fail on error */);
    299303          break;
     304
     305        case 302:
     306          sed_stdout = ck_fopen (optarg, "a", true /* fail on error */);
     307          break;
     308
     309        case 303:
     310          sed_stdout = ck_fopen (optarg, "ab", true /* fail on error */);
     311          break;
     312
     313        case 304:
     314          sed_stdout = ck_fopen (optarg, "at", true /* fail on error */);
     315          break;
    300316#endif
    301317
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette