[gentoo-user] Re: [OT] bash script advice/criticism wanted

2007-08-19 Thread »Q«
Bo Ørsted Andresen [EMAIL PROTECTED] wrote: Also things like [[ $foo == ]] should rather be [[ -n $foo ]] but that's a minor. [[ -z $foo ]] seems to work much better. ;) -- [EMAIL PROTECTED] mailing list

Re: [gentoo-user] Re: [OT] bash script advice/criticism wanted

2007-08-19 Thread Alex Schuster
»Q« writes: On Sun, 19 Aug 2007 07:10:30 +0200 Bo Ørsted Andresen [EMAIL PROTECTED] wrote: On Sunday 19 August 2007 04:00:45 »Q« wrote: It works as it is, but I'm interested in learning about any newbie traps into which I might be falling or about any better practices I should use.

[gentoo-user] Re: [OT] bash script advice/criticism wanted

2007-08-19 Thread »Q«
On Sun, 19 Aug 2007 10:43:18 +0200 Alex Schuster [EMAIL PROTECTED] wrote: There is comp.unix.shell. Thanks. I'll go there from now on. And read the Advanced Bash Scripting Guide: http://tldp.org/LDP/abs/html/ I had been reading the ABS doc, but parts of it made more sense after the input

[gentoo-user] Re: [OT] bash script advice/criticism wanted

2007-08-18 Thread »Q«
[EMAIL PROTECTED] wrote: On Sat, Aug 18, 2007 at 09:00:45PM -0500, ?Q? wrote: The script is at http://remarqs.net/misc/mids2urls.sh.txt. Feel free to reply to me off-list (or just to flame me) if you think this kind of non-Gentoo-specific stuff has no place here. I took a quick look

[gentoo-user] Re: [OT] bash script advice/criticism wanted

2007-08-18 Thread »Q«
On Sun, 19 Aug 2007 07:10:30 +0200 Bo Ørsted Andresen [EMAIL PROTECTED] wrote: On Sunday 19 August 2007 04:00:45 »Q« wrote: It works as it is, but I'm interested in learning about any newbie traps into which I might be falling or about any better practices I should use. This is my first