[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why complete doesn't print anything if it is called in a bash script
From: |
Chet Ramey |
Subject: |
Re: Why complete doesn't print anything if it is called in a bash script? |
Date: |
Sat, 12 Nov 2011 11:18:11 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 |
On 11/12/11 10:41 AM, Peng Yu wrote:
> Hi,
>
> It is strange to me why complete doesn't print anything when it is
> called in a bash script. I must have misunderstood some fundamentals.
> Does anybody know why? Thanks!
Since complete happily shows completions when run from a shell script,
there must be code in your bashrc that prevents them from being
defined if the shell is not interactive.
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/