[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...)...
- Re: Should this be this way?, (continued)
- Re: Should this be this way?, Linda Walsh, 2013/02/25
- Re: Should this be this way?, DJ Mills, 2013/02/25
- Re: Should this be this way?, Linda Walsh, 2013/02/25
- Re: Should this be this way?, Chris Down, 2013/02/25
- Re: Should this be this way?, Linda Walsh, 2013/02/26
- Re: Should this be this way?, Chet Ramey, 2013/02/26
- Re: Should this be this way?, Linda Walsh, 2013/02/26
- Re: Should this be this way?, Greg Wooledge, 2013/02/26
- Re: Should this be this way?, Linda Walsh, 2013/02/26
- Re: Should this be this way?, Greg Wooledge, 2013/02/26
- Re: Should this be this way?,
Linda Walsh <=
- Re: Should this be this way?, Chris Down, 2013/02/27
- Re: Should this be this way?, Chet Ramey, 2013/02/28
- Re: Should this be this way?, Bob Proulx, 2013/02/28
- Re: Should this be this way?, Andreas Schwab, 2013/02/28
- Re: Should this be this way?, Pierre Gaston, 2013/02/28
- Re: Should this be this way?, Sven Mascheck, 2013/02/28
- Re: Should this be this way?, Linda Walsh, 2013/02/28
- Re: Should this be this way?, Chet Ramey, 2013/02/26
- Re: Should this be this way?, Linda Walsh, 2013/02/27
Re: Should this be this way?, Pierre Gaston, 2013/02/26