Re: "Segmentation fault" running "ls" ...?
Joshua Tacoma <jtacoma@connect.carleton.ca> writes:
> ~/lsfu$ which ls
> /bin/ls
> ~/lsfu$ ls `which ls`
> -rwxr-xr-x 1 root bin 56544 Feb 28 01:53 /bin/ls
> ~/lsfu$ alias ls
> bash: alias: ls: not found
Is your ls a shell function, perhaps? bash(1) suggests that 'type ls'
should tell you more authoritatively what you really get when you type
'ls'.
> ~/lsfu$ ls apostrophe\'inname/
> sh: -c: line 1: unexpected EOF while looking for matching `''
> sh: -c: line 2: syntax error: unexpected end of file
...this suggests that there's something odd going on; ls really
shouldn't be calling a subshell.
Are you redefining ls in your dotfiles (or in one of the bash
dotfiles)? What does it look like?
--
David Maze dmaze@debian.org http://people.debian.org/~dmaze/
"Theoretical politics is interesting. Politicking should be illegal."
-- Abra Mitchell
Reply to: