Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > alt.os.linux.slackware > #26515
| From | Rich <rich@example.invalid> |
|---|---|
| Newsgroups | alt.os.linux.slackware, comp.os.linux.misc, alt.os.linux.debian |
| Subject | Re: bash script problem ? |
| Date | 2016-03-16 17:43 +0000 |
| Organization | My Linux Box |
| Message-ID | <ncc603$o0q$3@dont-email.me> (permalink) |
| References | <ncc31c$gle$1@dont-email.me> |
Cross-posted to 3 groups.
In alt.os.linux.slackware no.top.post@gmail.com wrote: > In article <>, Teemu Likonen <tlikonen@iki.fi> wrote: > > > > rich@example.invalid [2016-03-10 15:22:57Z] wrote: > > > > > Step 1, don't use the legacy sh backtick substitution syntax for > > > this (because it cannot nest). Use Bash's $() substitution > > > instead (because it can nest). > > > > I agree that $() is better but ``'s can nest:=20 > > > > $ echo Year: `date \`echo +%Y\`` > > Year: 2016 > > > That's spooky ! Who <associated> +%Y with "2016" ? Lets have some > examples of nesting, without extra spooky-stuf. Execute "man date" in a xterm - read the results - you will learn something.
Back to alt.os.linux.slackware | Previous | Next — Previous in thread | Find similar | Unroll thread
Re: bash script problem ? no.top.post@gmail.com - 2016-03-16 16:53 +0000
Re: bash script problem ? William Unruh <unruh@invalid.ca> - 2016-03-16 17:08 +0000
Re: bash script problem ? Unknown <dog@gmail.com> - 2016-03-17 11:00 +0000
Re: bash script problem ? Joe Beanfish <joebeanfish@nospam.duh> - 2016-03-17 14:07 +0000
Re: bash script problem ? "Helmut Hullen" <Helmut@Hullen.de> - 2016-03-16 18:14 +0100
Re: bash script problem ? Rich <rich@example.invalid> - 2016-03-16 17:43 +0000
csiph-web