Search Results

Search: Posts Made By: BLinux
1,435
Posted By BLinux
thanks people for helping me understand the...
thanks people for helping me understand the subtleties. I think for the sake of clarity, I'm just going to use something like:


if [[ -f "$file" ]] ; then
(( counter++ ))
continue
fi
1,435
Posted By BLinux
thank you everyone. i got it now. i was confused...
thank you everyone. i got it now. i was confused about the return behavior of (( counter++ )). so, to get what i was expecting, i can use either:

(( ++counter ))
(( counter = counter + 1 ))...
1,435
Posted By BLinux
Why do these 2 methods result in different outcomes?
I've been troubleshooting a ksh93 script I wrote today and have narrowed it down to the root cause. but I don't understand why?

so, i've written the following script to demonstrate the problem i...
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 08:39 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy