On 5/17/15 6:54 PM, isabella parakiss wrote:
> fc activates the verbose mode to print the commands as they're read by
> the parser and uses unwind_protect_int to restore it.
>
> This is a good idea but there are a few problems with it:
> 1. it prints the DEBUG trap, which I didn't expect
> 2. it's impossible to use fc to turn on/off the verbose mode
> ( well, you can, but it's lost as soon as the command ends )
>
> Is it possible to print the commands without activating that mode?
This is a good observation. The next release of bash will decouple the
-v option from using verbose mode while fc executes commands from a file.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU [email protected] http://cnswww.cns.cwru.edu/~chet/