I don't use this but we often have question on irc (and from time to time here)
about indirect array reference, so I thought it might be worth mentionning
>From the example of http://mywiki.wooledge.org/BashFAQ/006
ref='x[$(touch evilfile; echo 0)]'
ls -l evilfile # No such file or directory
we are running some script from Java through maverick API,
some text in "Session.stdout" object variable is giving
improper format,
prog="snmpd"
start() {
echo -n $"Starting $prog: "
}
value in the "$prog" displaying properly,bur the "Starting" message is
scrambled.
"Bourne-Again shell"
On Tue, Aug 16, 2011 at 03:41:19PM -0700, Linda Walsh wrote:
> Ken Irving wrote:
> >Maybe this?
> >today_snaps=( ${snap_prefix} )
> but as you mention, that will put them into an arraysorry "imprecise
> terminology" list for me is some number of objects in a string
> separated by so
On Tue, Aug 16, 2011 at 02:11:43PM -0700, Linda Walsh wrote:
> 2) His knowledge base about bash seems to be dated or lacking.
> His page on indirect assignment skips using arith expressions and skipped
> one line assignments for assigning to indirect vars using the "<<<"
It's a wiki, you know. I
On Wed, Aug 17, 2011 at 10:54:02AM +, Kiran Kotla wrote:
> prog="snmpd"
> start() {
> echo -n $"Starting $prog: "
> }
> value in the "$prog" displaying properly,bur the "Starting" message is
> scrambled.
> "Bourne-Again shell" format.
The $"..." quoting is for localization (natural l
` Eric Blake wrote:
On 08/15/2011 04:40 PM, Sam Steingold wrote:
* Andreas Schwab [2011-08-15 22:04:04 +0200]:
Sam Steingold writes:
Cool. Now, what does this imply?
"For almost every purpose, shell functions are preferred over
aliases."
so, how do I write
alias a=b
as a function?
(