Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (7 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/util-linux/script.c

    r2725 r3232  
    1111 * Licensed under GPLv2 or later, see file LICENSE in this source tree.
    1212 */
     13
     14//usage:#define script_trivial_usage
     15//usage:       "[-afq" IF_SCRIPTREPLAY("t") "] [-c PROG] [OUTFILE]"
     16//usage:#define script_full_usage "\n\n"
     17//usage:       "    -a  Append output"
     18//usage:     "\n    -c PROG Run PROG, not shell"
     19//usage:     "\n    -f  Flush output after each write"
     20//usage:     "\n    -q  Quiet"
     21//usage:    IF_SCRIPTREPLAY(
     22//usage:     "\n    -t  Send timing to stderr"
     23//usage:    )
     24
    1325#include "libbb.h"
    1426
     
    6678        printf("Script started, file is %s\n", fname);
    6779    }
    68     shell = getenv("SHELL");
    69     if (shell == NULL) {
    70         shell = DEFAULT_SHELL;
    71     }
     80    shell = get_shell_name();
    7281
    7382    pty = xgetpty(pty_line);
Note: See TracChangeset for help on using the changeset viewer.