Chet,

'history' is not the builtin command in this case. 'history' is a normal
file containing awk code (see my first post).  I named it history because
it does some calculations and shows the 10 most used commands. The file is
expecting some input from a command (pipe) like the 'history' builtin
command.

On Wed, Apr 22, 2015 at 10:58 PM, Chet Ramey <chet.ra...@case.edu> wrote:

> On 4/21/15 4:30 AM, Valentin Bajrami wrote:
> > The behaviour on bash  4.2.53(1)-release  seems to be different.  For
> example
> >
> > $ ./history | his
> > bash: his: command not found...
> > [ Here I press enter to get back to the terminal. This wasn't the case on
> > 4.3.x ]
> >
> > [1]+  Stopped                 ./history | his
> > $ jobs -l
> > [1]+  4784 Stopped (tty input)     ./history
> >       4785 Exit 127                | his
>
> Wait a second.  You're not running the `history' builtin.  What does
> `./history' do?  It's the process that's being stopped for tty input.
>
> --
> ``The lyf so short, the craft so long to lerne.'' - Chaucer
>                  ``Ars longa, vita brevis'' - Hippocrates
> Chet Ramey, ITS, CWRU    c...@case.edu
> http://cnswww.cns.cwru.edu/~chet/
>



-- 
Met vriendelijke groet,

Valentin Bajrami

Reply via email to