13,420
edits
Changes
→INVESTIGATION 2: USING VARIABLES IN SHELL SCRIPTS
# '''Save''' your editing changes and '''exit''' your text editor.<br><br>
# Issue the following linux command to run this shell script with the Bourne Shell (i.e. '''sh'''):<br><span style="color:blue;font-weight:bold;font-family:courier;">sh hello</span><br><br>
# While in the ''Bourne Shell'', run your shell script: <span style="color:blue;font-weight:bold;font-family:courier;">./hello</span><br><br>What shell does the shell script indicate is running?<br>You should notice that this script is being run in the Bourne shell.<br><br>Although your shell script should work, it is recommended to force your shell script to run in a '''specific''' shell.<br>This helps prevent your shell script encountering errors when run in the incorrect shell<br>(i.e. syntax not recognized in a specific shell).<br><br>
# Edit your '''hello''' shell script using a text editor.<br><br>