Re: odd behavior from overloading the source builtin

2014-03-17 Thread Chet Ramey
On 3/16/14 5:17 PM, Doug McIlroy wrote: Apologies for having sent the wrong message before GNU bash, version 4.2.39(1)-release (x86_64-redhat-linux-gnu)[5~ interprets this shell script differently when bash input comes from a terminal or when it conmes from a file: source(){

odd behavior from overloading the source builtin

2014-03-16 Thread Doug McIlroy
binxQRPThwkqX.bin Description: Binary data

Re: odd behavior from overloading the source builtin

2014-03-16 Thread Chris F.A. Johnson
On Sun, 16 Mar 2014, Doug McIlroy wrote: GNU bash, version 4.2.39(1)-release (x86_64-redhat-linux-gnu) interprets this shell script differently when bash input comes from a terminal or when it conmes from a file: source(){ echo x } source In the former case it