You are not logged in.

#1 2011-02-28 12:16:18

JMO
Member
From: Argentina
Registered: 2006-04-08
Posts: 98

Recommended Bash guides and books

Hello there.

I'm by no way a programmer. In fact, even when I'm using GNU/Linux (in almost any flavor/hardware I can think of) since 2005, it has been always sporadically, and in counted cases I felt a conducting line between my experiencies. One of those cases was when I tried to learn Bash a couple of years ago. Mostly, I readed Bash Guide for Begginers, of Matchtelt Garrels.

I'm really excited because now I've the time, resources and motivation to do it again, and I would like to hear some comments on it, advices, and specifically recommendations of online and "offline" material to take with me on this journey =]

Thanks in advance!

Last edited by JMO (2011-02-28 12:17:27)

Offline

#2 2011-02-28 13:05:34

Wintervenom
Member
Registered: 2008-08-20
Posts: 1,011

Re: Recommended Bash guides and books

See much better suggestions in posts below.

Last edited by Wintervenom (2011-03-01 07:54:44)

Offline

#3 2011-02-28 13:18:07

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Recommended Bash guides and books

Offline

#4 2011-02-28 14:29:22

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: Recommended Bash guides and books

http://wiki.bash-hackers.org/

I do not recommend the infamous TLDP guide for someone just starting out with Bash.

Offline

#5 2011-02-28 15:32:36

freak
Member
Registered: 2009-04-15
Posts: 17

Re: Recommended Bash guides and books

falconindy wrote:

http://wiki.bash-hackers.org/

I do not recommend the infamous TLDP guide for someone just starting out with Bash.

+1, I had to pretty much forget everything I learned from that site and start again.  Use the last two links, this and wooledge.

Last edited by freak (2011-02-28 15:32:59)

Offline

#6 2011-03-01 03:05:18

Anthony Bentley
Member
Registered: 2009-12-21
Posts: 76

Re: Recommended Bash guides and books

Definitely worth looking at. For instance, Bash Pitfalls.

Try not to conflate “bash” with “Bourne shell.” Not all platforms have bash. Not all platforms that have bash have it at /bin/sh, or even /bin/bash. Try to stick to portable Bourne shell unless you really need a bash feature. (Debian had this problem when they switched /bin/sh to dash: Dash As /bin/sh)

Offline

#7 2011-03-01 19:49:14

JMO
Member
From: Argentina
Registered: 2006-04-08
Posts: 98

Re: Recommended Bash guides and books

Anthony Bentley wrote:

Try not to conflate “bash” with “Bourne shell.” Not all platforms have bash. Not all platforms that have bash have it at /bin/sh, or even /bin/bash. Try to stick to portable Bourne shell unless you really need a bash feature. (Debian had this problem when they switched /bin/sh to dash: Dash As /bin/sh)

I knew that, but never give it a thought... Are that much differences on learning Bourne Shell against Bourne Again Shell, otherwise than some features?

Last edited by JMO (2011-03-01 20:19:45)

Offline

#8 2011-03-01 20:11:40

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Recommended Bash guides and books

JMO wrote:
Anthony Bentley wrote:

Try not to conflate “bash” with “Bourne shell.” Not all platforms have bash. Not all platforms that have bash have it at /bin/sh, or even /bin/bash. Try to stick to portable Bourne shell unless you really need a bash feature. (Debian had this problem when they switched /bin/sh to dash: Dash As /bin/sh)

I knew that, but never give it a thought... Should it be that much differences on learning Bourne Shell against Bourne Again Shell, otherwise than some features?

If you employ "some features" that only shell X has, the script won't work in any other shell. Bash is de facto standard shell in Linux world while dash is (more or less) de jure standard shell.

Offline

#9 2011-03-01 20:59:04

JMO
Member
From: Argentina
Registered: 2006-04-08
Posts: 98

Re: Recommended Bash guides and books

I realize that...
Well, thanks for the advice smile

Offline

#10 2011-03-01 21:14:49

jnguyen
Member
Registered: 2011-02-17
Posts: 139
Website

Re: Recommended Bash guides and books

Plenty of great guides to choose from. I think it's best to try and develop a script that you could find useful, and learn bash as you go along. It's easier to keep yourself motivated when you have a goal in sight.


TOMOYO Linux: Mandatory Access Control.
My AUR packages

Offline

Board footer

Powered by FluxBB