[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bash 2.04.11(1)-release weirdness if no #! line
From: |
Aharon Robbins |
Subject: |
bash 2.04.11(1)-release weirdness if no #! line |
Date: |
Tue, 27 Mar 2001 17:33:14 +0200 |
You don't know how long this took me to track down.
Bash version:
GNU bash, version 2.04.11(1)-release (i386-redhat-linux-gnu)
Copyright 1999 Free Software Foundation, Inc.
System:
Redhat GNU/Linux 7.0.
To reproduce, put the following in a file named foo:
cat "$@"
Make it executable. Note that there is no #! line. Here's what
happens:
Script started on Tue Mar 27 17:28:06 2001
bash2-2.04$ ./foo foo > /dev/null
bash2-2.04$ ./foo < foo > /dev/null
stty: standard input: Inappropriate ioctl for device
bash2-2.04$ exit
Script done on Tue Mar 27 17:28:19 2001
If I add a #! /bin/sh at the top, I no longer get the error message.
Thanks,
Arnold Robbins
--
Aharon (Arnold) Robbins --- Pioneer Consulting Ltd. arnold@skeeve.com
P.O. Box 354 Home Phone: +972 8 979-0381 Fax: +1 603 761-6761
Nof Ayalon Cell Phone: +972 51 297-545 (See www.efax.com)
D.N. Shimshon 99785 Laundry increases exponentially in the
ISRAEL number of children. -- Miriam Robbins
- bash 2.04.11(1)-release weirdness if no #! line,
Aharon Robbins <=