bug-bash
[Top][All Lists]
Advanced

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

Re: Possible Feature Requests (unsource, exchange)


From: Greg Wooledge
Subject: Re: Possible Feature Requests (unsource, exchange)
Date: Wed, 8 Jul 2009 14:10:37 -0400
User-agent: Mutt/1.4.2.2i

> > # Usage: exchange varname1 varname2
> > exchange() {
> >    local tmp
> >    [[ $1 = *[^[:alnum:]_]* || $1 = [0-9]* ]] &&
> >      { echo "Naughty naughty" >&2; return 1; }
> >    [[ $2 = *[^[:alnum:]_]* || $2 = [0-9]* ]] &&
> >      { echo "Naughty naughty" >&2; return 1; }
> >    eval tmp=\$$1
> >    eval $1=\$$2
> >    eval $2=\$tmp
> >    return 0
> > }

> Me too, did not found anything wrong. Mind, if I'm going to include
> this in my software? Would have to be GPL v3 though. (CREDITS of course
> will go to you).

Any code I write to a public mailing list is public domain, including
this.  You may do anything you want with it.




reply via email to

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