Magellan Linux

Diff of /trunk/mkinitrd-magellan/busybox/shell/hush.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 988 by niro, Sun May 30 11:32:42 2010 UTC revision 989 by niro, Sun May 30 11:41:34 2010 UTC
# Line 6944  int hush_main(int argc, char **argv) Line 6944  int hush_main(int argc, char **argv)
6944   /* -c 'script' (no params): prevent empty $0 */   /* -c 'script' (no params): prevent empty $0 */
6945   G.global_argv--; /* points to argv[i] of 'script' */   G.global_argv--; /* points to argv[i] of 'script' */
6946   G.global_argv[0] = argv[0];   G.global_argv[0] = argv[0];
6947   G.global_argc--;   G.global_argc++;
6948   } /* else -c 'script' ARG0 [ARG1...]: $0 is ARG0 */   } /* else -c 'script' ARG0 [ARG1...]: $0 is ARG0 */
6949   init_sigmasks();   init_sigmasks();
6950   parse_and_run_string(optarg);   parse_and_run_string(optarg);

Legend:
Removed from v.988  
changed lines
  Added in v.989