Any Bash features you'd like to see?

William Park opengeometry-FFYn/CNdgSA at public.gmane.org
Thu May 12 18:14:30 UTC 2005


On Thu, May 12, 2005 at 08:24:13AM -0400, Stewart C. Russell wrote:
> Peter wrote:
> > 
> > But why not go all the way ...
> 
> Do I get to say, "Bash is a nice operating system, but it lacks a
> lightweight scripting language" now?

I did embed Python into Bash shell, while ago.  Size bloated to 1.7MB,
and interface was awkward.  Now, I don't really need it, because I've
got most of Python features in Bash, such as
    - most of string operations,
    - try-block and exception handling,
    - regex everywhere
    - some functional syntax,

I'll releasing latest version (bashdiff-1.15), after this email.  It got
string join, like
    a=(`date`)
    echo "${a[*]}"	--> 'Thu May 12 14:13:06 EDT 2005'
    echo "${a[*]|,xx}"	--> 'ThuxxMayxx12xx14:13:06xxEDTxx2005'
And, few other minor operations.

-- 
William Park <opengeometry-FFYn/CNdgSA at public.gmane.org>, Toronto, Canada
ThinFlash: Linux thin-client on USB key (flash) drive
	   http://home.eol.ca/~parkw/thinflash.html
--
The Toronto Linux Users Group.      Meetings: http://tlug.ss.org
TLUG requests: Linux topics, No HTML, wrap text below 80 columns
How to UNSUBSCRIBE: http://tlug.ss.org/subscribe.shtml





More information about the Legacy mailing list