Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.linux.misc > #29605

Re: tip for improving your shell skills

Path csiph.com!eternal-september.org!feeder.eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail
From "Chris F.A. Johnson" <cfajohnson@cfaj.ca>
Newsgroups comp.os.linux.misc
Subject Re: tip for improving your shell skills
Date Wed, 1 Apr 2020 23:40:27 -0400
Organization A noiseless patient Spider
Lines 22
Message-ID <be3glg-uht.ln1@news.cfaj.ca> (permalink)
References <eli$2004011957@qaz.wtf>
Reply-To newsgroups@cfaj.ca
Injection-Info reader02.eternal-september.org; posting-host="619a6f4fbf25bf5374be18e91e297ab9"; logging-data="5407"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+tg2Y5zRdbEUwboQWhGidNb0LvWxZzNKc="
User-Agent slrn/1.0.3 (Linux)
Cancel-Lock sha1:RDasJOafZ3i47HqiA5jdONQ0xk0=
Xref csiph.com comp.os.linux.misc:29605

Show key headers only | View raw


On 2020-04-02, Eli the Bearded wrote:
> By running:
>
> echo "set -e" >> ~/.bash_profile
>
> You can put your shell (well, at next login) into an enhanced error
> checking mode.

   "Enhanced" is overstating the case; it does very limited error
   checking.

   Bash only includes it because POSIX requires it.

...
> The enhanced error checking has long been recommended for shell scripts,
> but don't miss the opportunity to benefit from it on the command line,
> too.

  It is deprecated, not recommended.

  http://mywiki.wooledge.org/BashFAQ/105
  

Back to comp.os.linux.misc | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

tip for improving your shell skills Eli the Bearded <*@eli.users.panix.com> - 2020-04-02 00:09 +0000
  Re: tip for improving your shell skills Bit Twister <BitTwister@mouse-potato.com> - 2020-04-01 23:04 -0500
  Re: tip for improving your shell skills "Chris F.A. Johnson" <cfajohnson@cfaj.ca> - 2020-04-01 23:40 -0400
    Re: tip for improving your shell skills Eli the Bearded <*@eli.users.panix.com> - 2020-04-02 17:17 +0000
    Re: tip for improving your shell skills Richard Kettlewell <invalid@invalid.invalid> - 2020-04-03 08:20 +0100
      Re: tip for improving your shell skills "Chris F.A. Johnson" <cfajohnson@cfaj.ca> - 2020-04-06 18:08 -0400

csiph-web