From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp Subject: Re: gcc-2.95.2 + bnu-2.9.5 cross compiler? Date: Thu, 16 Mar 2000 11:50:49 +0200 Organization: NetVision Israel Lines: 15 Message-ID: References: <83em9dxl4v DOT fsf AT mercury DOT st DOT hmc DOT edu> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 953200412 9995 199.203.121.2 (16 Mar 2000 09:53:32 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 16 Mar 2000 09:53:32 GMT X-Sender: eliz AT is In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Thu, 16 Mar 2000, Damian Yerrick wrote: > So tell the Info-ZIP maintainers to set the execute bit of *.EXE, > *.COM, *.BAT, and *.SH Not good enough: a shell script doesn't need to have a .sh extension. But this problem is not something Zip should care about on the application level. Instead, it should let the library do the job. The DJGPP version of `stat' already knows how to identify executable files as such, and that includes shell scripts, with or without the .sh extension. All Zip should do is record the mode bits returned by `stat' in the archive, like it does on Unix, without masking off the execute bit.