BTS

Issue180

Title grml-crypt: uses bash syntax with /bin/sh
Priority bug Status resolved
Superseder Nosy List gebi, mika
Assigned To gebi Topics

Created on 2007-03-27.08:15:01 by mika, last changed 2008-11-27.09:58:00 by mika.

Messages
msg1668 (view) Author: mika Date: 2008-11-27.09:58:00
Fixed with upload of grml-crypt (0.16).
msg1174 (view) Author: gebi Date: 2008-02-13.13:01:48
changed to /bin/bash
msg1160 (view) Author: mika Date: 2008-02-07.18:24:50
JFTR: https://wiki.ubuntu.com/DashAsBinSh
msg617 (view) Author: mika Date: 2007-07-01.21:44:47
Regarding:

| will be changed to /bin/bash

-> can you try that please? I'd like to have a "grml works with /bin/dash as /
bin/sh" system once and we should start testing and working on that.
msg436 (view) Author: mika Date: 2007-03-28.11:06:00
Argl, bring me a coffee. 8-) Thanks for taking care gebi, of course I'm talking 
about grml-crypt and not grml-vpn. :) Reopening therfore, adjusted title and 
removed release-stopper from topic.
msg435 (view) Author: mika Date: 2007-03-28.10:58:30
Interesting :) Ok, I'll ask Thomas about the source of his current grml-vpn 
script, closing the bug as it's definitely not a bug anymore. :)
msg434 (view) Author: gebi Date: 2007-03-28.10:52:46
i don't know where you get that grml-vpn uses /bin/sh

% head =grml-vpn
#!/usr/bin/zsh

now i recall it, grml-vpn uses zshs ince ages, because with bash you can NOT
increment a variable inside a pipe reading while loop.
msg417 (view) Author: gebi Date: 2007-03-27.12:01:53
will be changed to /bin/bash
msg396 (view) Author: mika Date: 2007-03-27.08:15:01
grml-vpn uses /bin/sh in the shebang line but uses non-POSIX syntax like
'function ...() {...}' in code itself - causing breakage on systems which use
something like /bin/dash as /bin/sh:

% grml-crypt mount ~/misc/Cryptofile cryptofs                              
/usr/sbin/grml-crypt: 53: function: not found                                  
         
Usage: "grml-crypt" [OPTIONS] action <device/file> [mountpoint]                
        
/usr/sbin/grml-crypt: 100: function: not found                                 
        
[...]

Thanks for reporting goes to Thomas Quaritsch.
History
Date User Action Args
2008-11-27 09:58:00mikasetstatus: in-progress -> resolved
messages: + msg1668
2008-02-13 13:07:51gebisetstatus: chatting -> in-progress
2008-02-13 13:01:48gebisetmessages: + msg1174
2008-02-07 18:24:50mikasetmessages: + msg1160
2007-07-01 21:44:47mikasetmessages: + msg617
2007-03-28 11:06:00mikasetstatus: resolved -> chatting
topic: - release-stopper
messages: + msg436
title: grml-vpn: uses bash syntax with /bin/sh -> grml-crypt: uses bash syntax with /bin/sh
2007-03-28 10:58:30mikasetstatus: testing -> resolved
messages: + msg435
2007-03-28 10:52:46gebisetstatus: in-progress -> testing
messages: + msg434
2007-03-27 12:01:53gebisetstatus: unread -> in-progress
messages: + msg417
2007-03-27 08:15:01mikacreate