Forrest logo
back to the ed tool

ed:tldr:58420

ed: Start an interactive editor session without exit status change when command fails.
$ ed --loose-exit-status
try on your machine

The command "ed --loose-exit-status" is used to run the ed (editor) program with a specific option called "loose-exit-status".

The ed program is a Unix text editor that allows users to edit files by performing various operations such as inserting, deleting, and replacing text. It is a command-line based editor and does not have a graphical user interface.

The "loose-exit-status" option is used to modify the exit status behavior of the ed program. By default, when using ed, if any errors occur during the execution of commands or scripts, the exit status will be non-zero, indicating failure. However, when the "--loose-exit-status" option is used, the ed program will instead exit with a zero status, irrespective of any errors encountered.

This option can be useful in certain situations where you want to suppress error reporting or when working with scripts that rely on the exit status of the ed command. It allows you to continue executing subsequent commands or scripts even if there are errors encountered while using ed.

In summary, the "ed --loose-exit-status" command runs the ed program with the "loose-exit-status" option, which modifies the exit status behavior to return zero even in the presence of errors.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ed tool