[index] [text page] [<<start] [<prev] [next>] [last>>]
Page 38: Shell feedback

Page 38

  Shell feedback
  If you don't have anything important to say, don't say anything.
  Commands generally output nothing if all went well.
  Commands set their 'exit status' (available via the $? variable) to zero on success, or non-zero on failure.
  Error and informational output is sent to stderr, not stdout.
      $ rm /path/to/file
      $ echo $?

Copyright 2005, Bri Hatch of Onsight, Inc.

Presented at LFNW - LinuxFest Northwest, Bellingham, Washington, Apr 2005

Presentation created using vim and MagicPoint.