A gotcha with Bash on Ubuntu 8.04November 7, 2009
Suppose that you have an Ubuntu 8.04 system where you have opted to make
/bin/sh be bash, the way it used to be in 6.06, and you have an account
with /bin/sh as the login shell (for example, you created it with plain
(The text in bold is what you typed before you hit <TAB>.) I'll give you the fix first: use This is one of those interestingly misleading error messages, although if you read very carefully Bash is actually sort of telling you what is going on. Let me give you a related example:
This error message has the same form as the first one but makes it much more obvious what the shell is complaining about. For filename completion, what seems to be going on is that when Bash is
operating in sh-compatible mode as a login shell, it is bash-like enough
to cause the Ubuntu 8.04 default dotfiles to load the bash command
line completion shell functions, but those functions use Bash-specific
syntax. As a result, Bash in sh-compatible mode interprets the (I spent a long time being confused by the error message because I
didn't read it carefully and thus didn't realize that it was complaining
about a failed redirection instead of a failure to find Short summary: this is an Ubuntu 8.04 bug caused by them not expecting
(One comment.)
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |