Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG] Condition in [[ doesn't fire, with "if" it fires



Checked that even:

    [[ "below" = "below" ]] && (( line ++ )) || (( line = stborder ))

doesn't fire. In the same way. It is the false option that is fired:

    echo "Non-bumped line [${ZUI[log_scroll]}] $line" >> /tmp/reply
    [[ "below" = "below" ]] && (( line ++ )) || (( line = 10 ))
    echo "Bumped line [${ZUI[log_scroll]}] $line" >> /tmp/reply

Non-bumped line [below] 0
Bumped line [below] 10

-- 
  Sebastian Gniazdowski
  psprint3@xxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author