On Tue, Feb 26, 2013 at 01:27:35PM -0800, Linda Walsh wrote:
> Except it isn't a script -- it's input that came from
> the terminal, that got repetitively edited using vi mode, until it got
> saved in a file so it could continue to be edited, and stay on the screen
> while executing it in the original window.
If it's in a file, it is a script.
Do note that commands in a file are not equivalent to commands typed into
an interactive shell. If the commands set variables or change directory
or toggle shell options, those changes won't persist because you're running
a script, and they go away when the script terminates. Maybe you want a
shell function instead.
> How often, when at a terminal, do you type #!/bin/bash before every line?
When I've put the contents into a file? Every. single. time.