[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] Re: problems to restore DB in Debian Testing
From: |
Karsten Hilbert |
Subject: |
[Gnumed-devel] Re: problems to restore DB in Debian Testing |
Date: |
Tue, 9 Mar 2010 12:34:30 +0100 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Tue, Mar 09, 2010 at 12:26:27PM +0100, Andreas Tille wrote:
> > Your shell is bash, as it should (for the restore).
>
> Back from holiday I try to work down my mail backlog. I wonder why the first
> line
>
> #!/bin/bash
>
> does not have the effect of using bash as command interpreter.
I have ben wondering about that, too, but didn't really see
any further way to debug this.
> PS: It is always a good idea not to relay on specific Bash features if not
> really necessary.
I agree.
> IMHO the same effect as
>
> if [[ "$BACKUP" =~ .*\.bz2 ]] ; then
>
> can be reached by
>
> if echo "$BACKUP" | grep -q "\.bz2$" ; then
>
> (UNTESTED!) and works for any shell.
Even better would be to use "test", I suppose.
I am open to patches.
Karsten
--
GPG key ID E4071346 @ wwwkeys.pgp.net
E167 67FD A291 2BEA 73BD 4537 78B9 A9F9 E407 1346
- [Gnumed-devel] problems to restore DB in Debian Testing, Rogerio Luz Coelho, 2010/03/02
- Re: [Gnumed-devel] problems to restore DB in Debian Testing, Karsten Hilbert, 2010/03/03
- Re: [Gnumed-devel] problems to restore DB in Debian Testing, Rogerio Luz Coelho, 2010/03/03
- Re: [Gnumed-devel] problems to restore DB in Debian Testing, Rogerio Luz Coelho, 2010/03/03
- Re: [Gnumed-devel] problems to restore DB in Debian Testing, Karsten Hilbert, 2010/03/04
- Re: [Gnumed-devel] problems to restore DB in Debian Testing, Karsten Hilbert, 2010/03/04
- [Gnumed-devel] Re: problems to restore DB in Debian Testing, Andreas Tille, 2010/03/09
- [Gnumed-devel] Re: problems to restore DB in Debian Testing,
Karsten Hilbert <=
- Re: [Gnumed-devel] Re: problems to restore DB in Debian Testing, Rogerio Luz Coelho, 2010/03/09
- Re: [Gnumed-devel] Re: problems to restore DB in Debian Testing, Karsten Hilbert, 2010/03/09