bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Should this be this way?


From: Linda Walsh
Subject: Re: Should this be this way?
Date: Tue, 26 Feb 2013 13:27:35 -0800
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.8.1.24) Gecko/20100228 Lightning/0.9 Thunderbird/2.0.0.24 Mnenhy/0.7.6.666


Greg Wooledge wrote:
> POSIX specifies the behavior of a shell.  This tells Chet how he has to
> make Bash behave (with some leeway).  There are all kinds of silly little
> details and ambiguities that Chet has to worry about.
> 
> However, YOU as a shell script writer do not have to worry about all
> that crap.  All you have to do is put the proper shebang line in your
> script, and then -- like magic! -- your script will be executed using
> the interpreter you specified.
---
        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.

        I.e. it's the natural evolution of input you type into
the terminal.

How often, when at a terminal, do you type #!/bin/bash before every line?

To have your script suddenly change behavior because you saved it in a file
and executed it by name would probably surprise most people.








reply via email to

[Prev in Thread] Current Thread [Next in Thread]