-
Book Overview & Buying
-
Table Of Contents
Linux Command Line and Shell Scripting Bible - Third Edition
By :
Unfortunately, the dash shell doesn't recognize all the scripting features of the bash shell. Shell scripts written for the bash environment often fail when run in the dash shell, causing all sorts of grief for shell script programmers. This section describes the differences you'll need to be aware of to get your shell scripts to run properly in a dash shell environment.
You probably guessed by now that creating shell scripts for the dash shell is pretty similar to creating shell scripts for the bash shell. You should always specify which shell you want to use in your script to ensure that the script runs with the proper shell.
You do this on the first line of the shell:
#!/bin/dash
You can also specify a shell command line parameter on this line, as was documented earlier in “The dash command line parameters” section.
Unfortunately, because the dash shell is only a subset of the Bourne shell...
Change the font size
Change margin width
Change background colour