gnumed-devel
[Top][All Lists]
Advanced

[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
----------------------------------------------------------------

Attachment: pgpZmWv6wOB4A.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]