On 12/30/2012 01:26 AM, Albin Tonnerre wrote:
> enlightenment_remote uses at least variable substitution (${var%%.*})
> and options (echo -e) that are not guaranteed to be available in
> stricter (wrt. what's in POSIX) shell implementations, which may lead to
> malfunction. Running the script using bash ensures things work as
> intended.
> ---
>   data/tools/enlightenment_remote |    2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/data/tools/enlightenment_remote b/data/tools/enlightenment_remote
> index 45295bb..a5e5d74 100644
> --- a/data/tools/enlightenment_remote
> +++ b/data/tools/enlightenment_remote
> @@ -1,4 +1,4 @@
> -#!/bin/sh
> +#!/bin/bash
>   #
>   # See the function show_help_new_tool in order to know more about this tool
>
>

Are you sure variable substitution (using #, %, etc) is not POSIX? As 
far I could remember, it is POSIX. I also found it mentioned here, and a 
couple of other places on Google search:

http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.baseadmn/doc/baseadmndita/korn_shell_parmsub1.htm

There are only two lines in enlightenment_remote which use "echo -e" and 
I think in both the lines they are unnecessary.


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnmore_123012
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to