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


Groups > linux.debian.user > #212719

Re: Strange Bash Script Problem

From David <bouncingcats@gmail.com>
Newsgroups linux.debian.user
Subject Re: Strange Bash Script Problem
Date 2019-08-13 02:00 +0200
Message-ID <yusoh-2uZ-1@gated-at.bofh.it> (permalink)
References (4 earlier) <yumsx-7f0-7@gated-at.bofh.it> <yumCd-7iC-1@gated-at.bofh.it> <yumLU-7mR-5@gated-at.bofh.it> <yun5g-7Jd-15@gated-at.bofh.it> <yunRE-8gC-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Tue, 13 Aug 2019 at 05:04, Lee <ler762@gmail.com> wrote:
> On 8/12/19, Greg Wooledge <wooledg@eeg.ccf.org> wrote:
> > On Mon, Aug 12, 2019 at 01:56:46PM -0400, Lee wrote:

>> What's the difference between ${d} and "${d}"?  Or is that a bashism
>> also? (all my scripts use /bin/sh so I'm pretty clueless wrt bash)
> >
> > For more details, see <https://mywiki.wooledge.org/Quotes>.
>
> Wow!  It's going to take me a while to understand the implications of
> all that, so I'll just stop here with a
> Thank you so much for the detailed explanation!

Don't stop!! :)

Quoting is the #1 priority thing you must understand for
shell scripting, until then any script you write is
relying on good fortune rather than good practice.

Here is the absolute minimum to know (it's only 3 lines):
https://mywiki.wooledge.org/Quotes#I.27m_Too_Lazy_to_Read.2C_Just_Tell_Me_What_to_Do

The #2 thing to know is where to go to learn
good practice:
https://mywiki.wooledge.org/BashGuide

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Re: Strange Bash Script Problem "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2019-08-11 20:20 +0200
  Re: Strange Bash Script Problem Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-12 15:40 +0200
    Re: Strange Bash Script Problem "Stephen P. Molnar" <s.molnar@sbcglobal.net> - 2019-08-12 16:30 +0200
    Re: Strange Bash Script Problem Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-12 19:30 +0200
      Re: Strange Bash Script Problem Lee <ler762@gmail.com> - 2019-08-12 19:40 +0200
        Re: Strange Bash Script Problem Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-12 19:50 +0200
          Re: Strange Bash Script Problem Lee <ler762@gmail.com> - 2019-08-12 20:00 +0200
            Re: Strange Bash Script Problem Greg Wooledge <wooledg@eeg.ccf.org> - 2019-08-12 20:20 +0200
              Re: Strange Bash Script Problem Lee <ler762@gmail.com> - 2019-08-12 21:10 +0200
                Re: Strange Bash Script Problem David <bouncingcats@gmail.com> - 2019-08-13 02:00 +0200
    Re: Strange Bash Script Problem Lee <ler762@gmail.com> - 2019-08-12 19:30 +0200

csiph-web