~ubuntu-branches/ubuntu/utopic/coreutils/utopic-proposed

« back to all changes in this revision

Viewing changes to src/nohup.c

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-11-28 03:03:42 UTC
  • mfrom: (8.3.4 sid)
  • Revision ID: package-import@ubuntu.com-20121128030342-21zanj8354gas5gr
Tags: 8.20-3ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Make 'uname -i -p' return the real processor/hardware, instead of
    unknown.
  - Build-depend on gettext:any instead of on gettext, so that apt-get can
    properly resolve build-dependencies on the tool when cross-building.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* nohup -- run a command immune to hangups, with output to a non-tty
2
 
   Copyright (C) 2003-2005, 2007-2011 Free Software Foundation, Inc.
 
2
   Copyright (C) 2003-2012 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
39
39
/* Exit statuses.  */
40
40
enum
41
41
  {
42
 
    /* `nohup' itself failed.  */
 
42
    /* 'nohup' itself failed.  */
43
43
    POSIX_NOHUP_FAILURE = 127
44
44
  };
45
45
 
47
47
usage (int status)
48
48
{
49
49
  if (status != EXIT_SUCCESS)
50
 
    fprintf (stderr, _("Try `%s --help' for more information.\n"),
51
 
             program_name);
 
50
    emit_try_help ();
52
51
  else
53
52
    {
54
53
      printf (_("\
65
64
      fputs (VERSION_OPTION_DESCRIPTION, stdout);
66
65
      printf (_("\n\
67
66
If standard input is a terminal, redirect it from /dev/null.\n\
68
 
If standard output is a terminal, append output to `nohup.out' if possible,\n\
69
 
`$HOME/nohup.out' otherwise.\n\
 
67
If standard output is a terminal, append output to 'nohup.out' if possible,\n\
 
68
'$HOME/nohup.out' otherwise.\n\
70
69
If standard error is a terminal, redirect it to standard output.\n\
71
 
To save output to FILE, use `%s COMMAND > FILE'.\n"),
 
70
To save output to FILE, use '%s COMMAND > FILE'.\n"),
72
71
              program_name);
73
72
      printf (USAGE_BUILTIN_WARNING, PROGRAM_NAME);
74
73
      emit_ancillary_info ();