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: Wed, 27 Feb 2013 20:05:04 -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:
> > 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...)...




reply via email to

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