bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Possibly a bug


From: Valentin Bajrami
Subject: Re: Possibly a bug
Date: Thu, 23 Apr 2015 09:28:47 +0200

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 <address@hidden> 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    address@hidden    http://cnswww.cns.cwru.edu/~chet/



--
Met vriendelijke groet,

Valentin Bajrami

reply via email to

[Prev in Thread] Current Thread [Next in Thread]