Greg Wooledge wrote: > > 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. --- Then when I press 'v' to edit the command line in a text editor -- maybe 'bash' should insert such a line? It's converted your command line into an editable file. But it hasn't put the #!/bin/bash at the front.
If that file is saved and run, it doesn't execute the same way as it does interactively. (note, I say the above someone tongue-in-cheek, but only to point out that it's very easy to go from editing a command to a file and if it becomes a file and 'bash' might not execute it the same way w/o the header, maybe it should put a headerline in? ;^/ ... (maybe distro's shouldn't muck w/user's shells...)...