Re: BASH Guru needed

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

 



On Thursday, Sep 25th 2003 at 08:40 -0500, quoth Bill Gradwohl:

=>Thanks Gordon & Norman
=>
=>I guess I lack imagination. It never dawned on me to redirect.
=>
=>I thought about a new process being created, but dismissed that because I mistakenly thought that since j kept its value inside what might be the new process, then that meant it couldn't be a new process since I was expecting that new process to get a new j with a value of 0. That was my mistake. Thanks for explaining it.
=>
=>Now maybe you could explain one other thing that I can't seem to wrap my brain around.
=>
=>If I can write 
=>   RULEZ[i++]="$x"
=>and i gets incremented, why can't I write 
=>   i++
=>free standing to increment i? What rule am I violating? The error is "command not found", but then RULEZ[i++]="$x" isn't a "command" either.
=>I've tried 
=>     : ++i
=>and that's ignored even though : is the null operator.
=>
=>How many different ways do you know of to write a statement to just
=>increment a variable by 1 or 2?

let $((foo++))

-- 
-Time flies like the wind. Fruit flies like a banana. Stranger things have -
-happened but none stranger than this. Does your driver's license say Organ
-Donor?Black holes are where God divided by zero. Listen to me! We are all-
-individuals! What if this weren't a hypothetical question?
steveo at syslang.net


-- 
Shrike-list mailing list
Shrike-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/shrike-list

[Index of Archives]     [Fedora Users]     [Centos Users]     [Kernel Development]     [Red Hat Install]     [Red Hat Watch]     [Red Hat Development]     [Red Hat Phoebe Beta]     [Yosemite Forum]     [Fedora Discussion]     [Gimp]     [Stuff]     [Yosemite News]

  Powered by Linux