bug-ed
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-ed] Not failing on no match.


From: Antonio Diaz Diaz
Subject: Re: [Bug-ed] Not failing on no match.
Date: Tue, 23 Sep 2008 12:09:37 +0000 (GMT)

Steve Traylen wrote:
> How do I avoid an error when a match does not work. I want to move to
> a line if it exists or else just stay where I am.

Wasn't the --loose-exit-status option supposed to solve this?

---------------------------------------------------------------------
$ ed -h
GNU Ed - The GNU line editor.

Usage: ed [options] [file]
Options:
  -h, --help                 display this help and exit
  -V, --version              output version information and exit
  -G, --traditional          run in compatibility mode
  -l, --loose-exit-status    exit with 0 status even if a command fails
  -p, --prompt=STRING        use STRING as an interactive prompt
  -s, --quiet, --silent      suppress diagnostics
  -v, --verbose              be verbose
Start edit by reading in `file' if given. Read output of shell command
if `file' begins with a `!'.

Report bugs to <address@hidden>.
Ed home page: http://www.gnu.org/software/ed/ed.html








reply via email to

[Prev in Thread] Current Thread [Next in Thread]