On 11/13/2014 08:22 AM, Mark Hounschell wrote:
Nothing is displayed. It should show all the files starting with "sh." and it does on all my installations previous to 13.2. But does not on any of my 13.2 machines.
IIR ... While there is a completion mechism built in to bash, see the MAN page, there is a lot of the completion that has to be set up. This is done when the shell initializes ... See ".profile" and ".bash_profile" and ".bashrc". The redefinition of completion in /etc/profile.d/* may also be pertient. I'm not running 13.2 yet, but in my shell startup on 13.1 these are called and part of my interactive shell. I note that you go on to say
Now if I
markh@harley:~/scripts> sh sh-4.2$ sh-4.2$ ./sh.include sh.include sh.include sh.include1 sh-4.2$ ./sh.include sh.include
All is good.
Well what you are doing is starting an interactive subshell, so see the man page: <quote> If bash is invoked with the name sh, it tries to mimic the startup behavior of historical versions of sh as closely as possible, while conforming to the POSIX standard as well. When invoked as an interactive login shell, or a non-interactive shell with the --login option, it first attempts to read and execute commands from /etc/profile and ~/.profile, in that order. The --noprofile option may be used to inhibit this behavior. When invoked as an interactive shell with the name sh, bash looks for the variable ENV, expands its value if it is defined, and uses the expanded value as the name of a file to read and execute. Since a shell invoked as sh does not attempt to read and execute commands from any other startup files, the --rcfile option has no effect. A non-interactive shell invoked with the name sh does not attempt to read any other startup files. When invoked as sh, bash enters posix mode after the startup files are read. </quote> Note that last line! The key point here is that 'sh' is not the same as 'bash'. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org