help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] Adding missing bash features for safely re-usable bash c


From: adrelanos
Subject: Re: [Help-bash] Adding missing bash features for safely re-usable bash code
Date: Mon, 08 Apr 2013 15:52:39 +0000

Greg Wooledge:
> On Mon, Apr 08, 2013 at 03:19:28PM +0000, adrelanos wrote:
>> What are the missing features in bash for writing easily, safely
>> re-usable bash code?
> 
> In my opinion the biggest one is the ability to pass variables by
> reference, which is coming in bash 4.3 Real Soon Now.
> 
> If you can think of others, speak up.
> 

I miss a feature to return non-integers from bash functions, i.e. to
return strings from bash functions.

my_bash_function() {
   return "some_string"
}

string="`my_bash_function`"

There are workarounds, yes, but nothing as simple as the one liner.



reply via email to

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