Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 9bdf1f2a in mainline


Ignore:
Timestamp:
2012-03-25T19:42:07Z (10 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master
Children:
1e19a15, 9463b245, b31f735, cc9f314
Parents:
2249e16
Message:

No need to be conforming to Unix ls especially when 'r' is unused in our ls.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bdsh/cmds/modules/ls/ls.c

    r2249e16 r9bdf1f2a  
    5656        { "help", no_argument, 0, 'h' },
    5757        { "unsort", no_argument, 0, 'u' },
    58         { "recursive", no_argument, 0, 'R' },
     58        { "recursive", no_argument, 0, 'r' },
    5959        { 0, 0, 0, 0 }
    6060};
     
    339339                "  -h, --help       A short option summary\n"
    340340                "  -u, --unsort     Do not sort directory entries\n"
    341                 "  -R, --recursive  List subdirectories recursively\n",
     341                "  -r, --recursive  List subdirectories recursively\n",
    342342                cmdname);
    343343        }
     
    363363       
    364364        for (c = 0, optind = 0, opt_ind = 0; c != -1;) {
    365                 c = getopt_long(argc, argv, "huR", long_options, &opt_ind);
     365                c = getopt_long(argc, argv, "hur", long_options, &opt_ind);
    366366                switch (c) {
    367367                case 'h':
     
    371371                        ls.sort = 0;
    372372                        break;
    373                 case 'R':
     373                case 'r':
    374374                        ls.recursive = 1;
    375375                        break;
Note: See TracChangeset for help on using the changeset viewer.