David C. Rankin wrote:
Listmates, <snip> So my question is "what basic bash rule am I screwing up this time, and, how do I fix it?" Thanks.
Yes, I know I can simply call the script from .bashrc and have it work, such as: /home/david/bin/wpsearch: #!/bin/bash if [[ $1 ]]; then webpin $1 else echo -e "\n\tusage: wp <filename>\n" exit 1 fi Then in .bashrc: alias wp='/home/david/bin/wpsearch $1' But, I was trying to find a way to do it all from .bashrc. I guess I could just make wpsearch a function in .bashrc, but that would violate the 1-line concept... -- David C. Rankin, J.D.,P.E. | openSoftware und SystemEntwicklung Rankin Law Firm, PLLC | Countdown for openSuSE 11.1 www.rankinlawfirm.com | http://counter.opensuse.org/11.1/small -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org For additional commands, e-mail: opensuse+help@opensuse.org