Thomas Güttler wrote:
> Hi Tduell,
>
> I use the shell daily, but only for interactive usage.
>
> I stopped scripting with the shell some years ago. I don't like the shell for scripting
> since:
>
> - The shell does not know the concept of exceptions or stacktraces.
It knows about exit statuses (see next)
> - The shell goes to the next line if something is wrong. I want the programm to stop, not to proceed.
Use the -e flag.
-e Exit immediately if a pipeline (which may consist of a single simple command), a list, or a com‐
pound command (see SHELL GRAMMAR above), exits with a non-zero status.
> - The shell has major problems handling filenames which contain special characters.
Use quotes.
> does this answer your question? Feel free to ask more details :-)
BugBear