Re: dumb question

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

 



On 01/04/2012 04:14 PM, Paul Allen Newell wrote:
> [inline]
>
> On 1/4/2012 12:06 AM, Ed Greshko wrote:
>> On 01/04/2012 03:59 PM, Paul Allen Newell wrote:
>>> Though I really appreciate both of your replies, I am looking at them
>>> and seeing that Marvin is saying it needs to be "+x" and Ed is saying
>>> it doesn't. I ran a test and "-x" seems to work.
>> FYI, Marvin corrected himself saying....
>>
>> Sorry..
>>
>> My bad...
>>
>> The make is +x..
>
> So I should chmod all {M,m}akefile(s) to rwxr-x-r-x?

I've already demonstrated that it isn't necessary..... 


>
>>> For questions on my syntax of "*.sh", I have believed since my
>>> earliest days that a shell file (be it ".sh", ".csh", ".tcsh", or
>>> ".bash") that it has to be "+x" as it is an executable. If I am
>>> incorrect, I would love to know, though it may take me a day or two to
>>> adjust to the news that the earth shifted polarity (smile)
>> If you want them to be directly executable, yes.  But if you call them
>> as input to a shell they need not be.
>
> That's new to me, thank you

Welcome...

>
>> If you have them as executable you can control what shell is used by the
>> first line in the file.
>>
>> As I mentioned earlier, I've got a shell script called killfox.  The
>> first line contains "#!/bin/bash" which means it is a "bash" script.  I
>> could change it to ""#!/bin/tcsh" and it would be interpreted as a tcsh
>> script.
>>
> I have been including the "$!/bin/whatever" for the longest time as
> there are some things that I find easier to do in {sh,tcsh,bash} and
> want to force that. The tcsh is the biggest problem in my life owing
> to its legacy ... I'd kick over to bash if it weren't for the fact
> that third party are stuck in the history of tcsh. I don't have any
> issue with either tcsh or bash, but I gotta live with the difference.

Sure, I also have some old stuff that needs tcsh.

-- 
A common mistake that people make when trying to design something
completely foolproof was to underestimate the ingenuity of complete
fools. -- Douglas Adams in "Mostly Harmless
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux