[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash
From: |
Gour |
Subject: |
[Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash |
Date: |
Sat, 02 Aug 2008 11:06:18 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) |
>>>>> "Jerzy" == Jerzy Luszawski <address@hidden> writes:
Jerzy> I'm not sure if it is possible and desirable to avoid
Jerzy> bash-specific code. You probably cannot write a script that will
Jerzy> work in *every* shell.
Right. Maybe the requirement could be to have POSIX-compliant shell ( I
remember having problems with many applications when running fish shell
and that's why I moved to zsh), or why not replace those scripts with
Python snippets 'cause Python is anyway dependency for GNUmed?
Jerzy> The problem I ran into was: 1. string comparison in bash is '=='
Jerzy> while in dash is single '=' According to bash man you can use
Jerzy> single '=' as well.
Would using 'test' help?
Still, I'm for replacing scripts with Python.
Sincerely,
Gour
--
Gour | Zagreb, Croatia | GPG key: C6E7162D
----------------------------------------------------------------
pgpZmWv6wOB4A.pgp
Description: PGP signature
- Re: [Gnumed-devel] <bug> shell scripts fail when /bin/sh <> /bin/bash, Karsten Hilbert, 2008/08/01
- Re: [Gnumed-devel] <bug> shell scripts fail when /bin/sh <> /bin/bash, Jerzy Luszawski, 2008/08/01
- [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash,
Gour <=
- Re: [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, Karsten Hilbert, 2008/08/02
- [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, Gour, 2008/08/03
- Re: [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, Karsten Hilbert, 2008/08/03
- Re: [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, James Busser, 2008/08/03
- Re: [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, Karsten Hilbert, 2008/08/04
- [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, Gour, 2008/08/04
- Re: [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, Karsten Hilbert, 2008/08/04
- [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, Gour, 2008/08/04
- Re: [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, Karsten Hilbert, 2008/08/04
- [Gnumed-devel] Re: <bug> shell scripts fail when /bin/sh <> /bin/bash, Gour, 2008/08/04