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


Groups > linux.debian.user > #172815

Substring search in dash [ _NOT_ bash ] shell

From Richard Owlett <rowlett@cloud85.net>
Newsgroups linux.debian.user
Subject Substring search in dash [ _NOT_ bash ] shell
Date 2016-09-26 17:50 +0200
Message-ID <slGki-5BO-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


The Installation Manual in _B.5.3. Chainloading preconfiguration 
files_ says in part:
# More flexibly, this runs a shell command and if it outputs the 
names of
# preconfiguration files, includes those files.
#d-i preseed/include_command \
#      string if [ "`hostname`" = bob ]; then echo bob.cfg; fi

I need for the case when evaluates to marybobsam .
I can find examples in bash shell, but I need dash.

Are there equivalents of
   https://www.gnu.org/software/bash/manual/bash.html
or
 
http://www.tldp.org/LDP/Bash-Beginners-Guide/html/Bash-Beginners-Guide.html
BUT for dash *NOT* bash?

TIA

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


Thread

Substring search in dash [ _NOT_ bash ] shell Richard Owlett <rowlett@cloud85.net> - 2016-09-26 17:50 +0200
  Re: Substring search in dash [ _NOT_ bash ] shell "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-27 10:10 +0200
    Re: Substring search in dash [ _NOT_ bash ] shell "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-27 10:50 +0200
      Re: Substring search in dash [ _NOT_ bash ] shell Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-27 15:50 +0200
        Re: Substring search in dash [ _NOT_ bash ] shell "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-27 17:10 +0200
          Re: Substring search in dash [ _NOT_ bash ] shell Greg Wooledge <wooledg@eeg.ccf.org> - 2016-09-27 17:30 +0200
            Re: Substring search in dash [ _NOT_ bash ] shell "Thomas Schmitt" <scdbackup@gmx.net> - 2016-09-27 18:00 +0200

csiph-web