From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E3ahl-0000zp-Si for garchives@archives.gentoo.org; Fri, 12 Aug 2005 14:40:18 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7CEbk80014280; Fri, 12 Aug 2005 14:37:46 GMT Received: from mail.t-systems.cz (mail.t-systems.cz [212.67.76.249]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7CEWT8P026839 for ; Fri, 12 Aug 2005 14:32:29 GMT Received: from mefisto.t-systems.cz (faust.t-systems.cz [10.246.110.12]) by mail.t-systems.cz (Postfix) with ESMTP id 68E538A01F for ; Fri, 12 Aug 2005 16:33:27 +0200 (CEST) Received: from andre.t-systems.cz ([10.246.112.240]) by mefisto.t-systems.cz with Microsoft SMTPSVC(6.0.3790.211); Fri, 12 Aug 2005 16:33:28 +0200 Received: andre.t-systems.cz 10.246.112.240 from 10.246.112.176 10.246.112.176 via HTTP with MS-WebStorage 6.5.6944 Received: from frankies by andre.t-systems.cz; 12 Aug 2005 16:33:33 +0200 Subject: Re: [gentoo-user] OT: bash details From: Frank Schafer To: gentoo-user@lists.gentoo.org In-Reply-To: References: Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 12 Aug 2005 16:33:32 +0200 Message-Id: <1123857213.5746.42.camel@localhost.localdomain> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.2.1.1 X-OriginalArrivalTime: 12 Aug 2005 14:33:28.0516 (UTC) FILETIME=[CE29A840:01C59F4A] X-T-Systems_Czech-MailScanner: Found to be clean X-T-Systems_Czech-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-5.797, required 5, autolearn=not spam, ALL_TRUSTED -3.30, AWL 0.10, BAYES_00 -2.60) X-MailScanner-From: frank.schafer@t-systems.cz X-Archives-Salt: 25232c84-ffb7-495a-8a2d-970cb571852e X-Archives-Hash: dae3930752fa5cbe1d015a7594c99d22 Hi, Gooooooooooogle "Advanced Bash-Scripting Guide" >>> Regards Frank On Fri, 2005-08-12 at 14:25 +0000, James wrote: > Hello, > > I cannot seem to find detailed document/manual on using bash robustly > in a programming environment. Maybe I need to purchase a good book? > Mostly I'm an old csh hack. I like bash, but it seems porting over C code > from a csh (or embedded) to a bash environment gives me trouble that is mostly > due to my lack of in-depth knowledge of bash. Simple things like paths > to libraries and other software modules inside of the ported code I > either screw up or it seems like I solve the problems differently each > time. > > Often the code I'm porting was not written for any type of unix > or pre-emptible kernel, so I have features and functions that are > instantiated in assembler or ansi C, that I have to figure out > if there is a library I can use (acceptable similarity) or if > I need to port the native micro code to a linux module or library. > I seem to get these things to eventually work, but, well, I feel stupid > and inept, as I should not be having the difficulty with these > efforts that I am experiencing. Productivity must increase, and the > only thing I can figure out, is I need to read and learn from a document > or somebody that has figured out more 'rote methodologies' that I do > not posess (if this sounds confusing, it's because I frustrated > and not sure what I'm missing or deficient in). > > Any suggestions and examples where I may read and look at examples > or a suitable forum to ask questions would be appreciated. Bash trickery > is definately a weak point for me, but, that may not be my only > area where I need to improve my knowledge and skills, related to > software porting and development. Most of my code does involve hardware > and or device drivers. Things like embeding code into the > kernel or a module, thus avoiding bash all together with the 'driver' > portion of the (hardware) code, and then making the other part of the > code user accessible, via a shell. Some robust, detailed examples > would be keen. I'm sufficient at getting chips and device drivers > working in a micro environment, it's making these hardware and software > items accessible via the (linux) shell environment where I struggle the most. > > > > James > -- gentoo-user@gentoo.org mailing list