Package: fish
Version: 1.21.1-1
Severity: normal
Steps to reproduce:
1) run "fish"
Expected results:
1) fish should welcome the user and show a prompt
Actual results:
1) fish shows an error message, welcomes the user and shows a prompt:
$ fish
grep: (while|for|if|function|switch): No such file or directory
Welcome to fish, the friendly interactive shell
Type help for instructions on how to use fish
[EMAIL PROTECTED] ~>
strace shows that fish does
execve("/bin/grep", ["grep", "-vE", "(while|for|if|function|switch)"],
[... "GREP_OPTIONS=97;45" ... ]
which is equivalent to
grep "97;45" -vE "(while|for|if|function|switch)"
Since "97;45" is not a valid option it is parsed as a pattern instead
and "(while|for|if|function|switch)" is not parsed as a pattern but
filename.
The problem can be fixed by not setting errorneous GREP_OPTIONS:
--- /usr/share/fish/functions/grep.fish.orig 2006-03-21 20:08:16.000000000
+0200
+++ /usr/share/fish/functions/grep.fish 2006-03-21 20:08:24.000000000 +0200
@@ -6,8 +6,5 @@
if not set -q GREP_COLOR
set -gx GREP_COLOR '97;45'
end
- if not set -q GREP_OPTIONS
- set -gx GREP_OPTIONS '97;45'
- end
end
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.4.29sauna
Locale: LANG=C, LC_CTYPE=fi_FI (charmap=ISO-8859-1)
Versions of packages fish depends on:
ii bc 1.06-19 The GNU bc arbitrary precision cal
ii libc6 2.3.6-3 GNU C Library: Shared libraries an
ii libncurses5 5.5-1 Shared libraries for terminal hand
Versions of packages fish recommends:
pn xsel <none> (no description available)
-- no debconf information
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]