Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #237145
| From | Charles Curley <charlescurley@charlescurley.com> |
|---|---|
| Newsgroups | linux.debian.user |
| Subject | Re: Bash: testing a variable |
| Date | 2021-07-10 02:20 +0200 |
| Message-ID | <Cz8SS-1SC-3@gated-at.bofh.it> (permalink) |
| References | <Cz4Pg-7FI-7@gated-at.bofh.it> <Cz5ih-84k-1@gated-at.bofh.it> <Cz5BE-8aW-5@gated-at.bofh.it> <Cz5Lj-8ed-3@gated-at.bofh.it> |
| Organization | occasionally |
On Fri, 9 Jul 2021 16:53:45 -0400 Greg Wooledge <greg@wooledge.org> wrote: > Since it's a function, and not a script, there's no shebang. So I'm > guessing shellcheck assumed it was /bin/sh code, rather than bash > code. <<< is just one of the bashisms I used here. local is > another. The use of arrays is a third. The [[ command is a fourth. I had dropped the function into a script, and added code to use it, and a shebang. So shellcheck knew to allow bashisms. Why it didn't like that one I don't know. -- Does anybody read signatures any more? https://charlescurley.com https://charlescurley.com/blog/
Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Bash: testing a variable Charles Curley <charlescurley@charlescurley.com> - 2021-07-09 22:00 +0200
Re: Bash: testing a variable Joerg Kampmann <ibk-klima-vortrag@ibk-consult.de> - 2021-07-09 22:20 +0200
Re: Bash: testing a variable Charles Curley <charlescurley@charlescurley.com> - 2021-07-09 22:50 +0200
Re: Bash: testing a variable Greg Wooledge <greg@wooledge.org> - 2021-07-09 22:30 +0200
Re: Bash: testing a variable Kampmann <kampmann@ibk-consult.de> - 2021-07-09 22:40 +0200
Re: Bash: testing a variable Charles Curley <charlescurley@charlescurley.com> - 2021-07-09 22:50 +0200
Re: Bash: testing a variable Greg Wooledge <greg@wooledge.org> - 2021-07-09 23:00 +0200
Re: Bash: testing a variable Charles Curley <charlescurley@charlescurley.com> - 2021-07-10 02:20 +0200
Re: Bash: testing a variable john doe <johndoe65534@mail.com> - 2021-07-09 23:50 +0200
Re: Bash: testing a variable Greg Wooledge <greg@wooledge.org> - 2021-07-10 00:10 +0200
csiph-web