[Bug 413084] New: stty: standard input: Inappropriate ioctl for device
https://bugzilla.novell.com/show_bug.cgi?id=413084 Summary: stty: standard input: Inappropriate ioctl for device Product: openSUSE 11.1 Version: Factory Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: ro@novell.com ReportedBy: jblunck@novell.com QAContact: qa@suse.de Found By: --- I see some messages like this in /var/log/messages: Jul 30 02:20:45 T61 ifup-services: stty: standard input: Inappropriate ioctl for device Jul 30 02:20:45 T61 ifup-services: /etc/rc.status: line 48: test: -eq: unary operator expected Jul 30 02:20:45 T61 ifup-services: /etc/rc.status: line 49: test: -eq: unary operator expected This is due /etc/rc.status is included in /etc/init.d scripts and when run from via ifup-services they don't seem to have a proper terminal attached. Therefore I propose the following changes: # Seek for terminal size and, if needed, set default size rc_lc () { if test -n "$REDIRECT" ; then - set -- $(stty size < "$REDIRECT") + set -- $(stty size < "$REDIRECT" 2>/dev/null) else - set -- $(stty size) + set -- $(stty size 2>/dev/null) fi - LINES=$1 - COLUMNS=$2 + LINES=${1:-0} + COLUMNS=${2:-0} -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=413084
User ro@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=413084#c1
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=413084
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=413084#c2
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com