[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: should bash, bash -v and bash -x behave identically?
From: |
Chet Ramey |
Subject: |
Re: should bash, bash -v and bash -x behave identically? |
Date: |
Thu, 17 May 2001 11:57:46 -0400 |
>
> I'm configuring imagemagick 5.3.3. I'm on solaris 2.7.
>
> I didn't like the values its finding, so I wanted to
> trace configure.
>
> Turns out I hit something interesting:
>
> bash -x (and bash, and sh -vx) run fine
> bash -v (and bash -vx) does bizarre things
> (the value of CPP should be "gcc -E", instead its /lib/cpp
> and it stops there...
> Shouldn't bash -x, bash -vx, and bash -v do the same things?
I don't believe so. -v says to echo the shell input as it's read.
-x says to echo the expanded command just before it's executed.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
( ``Discere est Dolere'' -- chet)
Chet Ramey, CWRU chet@po.CWRU.Edu http://cnswww.cns.cwru.edu/~chet/