bug-bash
[Top][All Lists]
Advanced

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

Why complete doesn't print anything if it is called in a bash script?


From: Peng Yu
Subject: Why complete doesn't print anything if it is called in a bash script?
Date: Sat, 12 Nov 2011 09:41:01 -0600

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!

~$ cat main.sh
#!/usr/bin/env bash

. ~/.bashrc

complete

~$ ./main.sh
~$ complete |head
complete -F _kill kill
complete -F _renice renice
complete -F _smbpasswd smbpasswd
complete -F _postconf postconf
complete -F _ldapwhoami ldapwhoami
complete -F _ldapaddmodify ldapadd
complete -F _launchctl launchctl
complete -F _java java
complete -F _stream stream
complete -F _filedir_xspec oodraw


-- 
Regards,
Peng



reply via email to

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