Angus Leeming <[EMAIL PROTECTED]> writes:

> 
> gv changed its command line options in version 3.6.1 so that it no longer 
> recognizes `gv -swap`. Instead we need `gv --swap`. (An extra '-').
> 
> The function GV_SWAP below outputs '-swap' or '--swap' to stdout, 
> depending. I use this to initialize the PS_VIEWER variable.
> 
> It works perfectly here, but I'm unsure whether to commit the change. Is 
> it just too cute?

Wouldn't just 

    if (gv -help 2>&1 | grep -e --swap) 
    then echo "--swap"
    else echo "-swap"
    fi

work?

BTW, gv needs the XServer even for "gv -h" and "gv -v" :-(

Ciao
/Andreas

Reply via email to