[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fc and the verbose mode
From: |
Chet Ramey |
Subject: |
Re: fc and the verbose mode |
Date: |
Tue, 26 May 2015 17:03:11 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.6.0 |
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 chet@case.edu http://cnswww.cns.cwru.edu/~chet/