You are not logged in.

#1 2008-10-15 08:18:58

fawx
Member
Registered: 2008-08-20
Posts: 8

Wildcard (*) does not work when using bash.

I can't seem to get the wildcard (*) to work when I press shift + 8 in a command line. I can make a bash script in nano and use the character, but never in the shell.

Offline

#2 2008-10-15 09:46:24

lama
Member
Registered: 2008-09-28
Posts: 16

Re: Wildcard (*) does not work when using bash.

ls *        # same as ls -R

Does this work in your home-directory? Is there any error-message, any system beep/bell?


My way to happyness:
cat ~/problems > /dev/null

Offline

#3 2008-10-15 10:04:32

Procyon
Member
Registered: 2008-05-07
Posts: 1,819

Re: Wildcard (*) does not work when using bash.

Is there something using it in an rc file? Maybe ~/.inputrc

Offline

#4 2008-10-15 10:30:35

fawx
Member
Registered: 2008-08-20
Posts: 8

Re: Wildcard (*) does not work when using bash.

@lama, Yes, a system bell is triggered, that is all. It does not display the character in any directory.
@Proc, I don't know, I don't have a .inputrc
Off-topic, would it be an .inpurc or a .inputrc. I tend to pronounce it "dot input are see" Same with all the other hiddens.

Offline

#5 2008-10-15 14:58:57

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: Wildcard (*) does not work when using bash.

These questions might help:
Does this happen at the linux console? In X? Both?
What is your keymap configuration in /etc/rc.conf? What is your keyboard layout in X?
Does typing a '*' with another key (e.g. the one above the numeric keypad, if you have one) work as expected?
Is this a new problem?
Can you type a '*' in other text editors as well? What about other shells? Other terminal emulators?

Offline

#6 2008-10-15 15:44:05

perbh
Member
From: Republic of Texas
Registered: 2005-03-04
Posts: 765

Re: Wildcard (*) does not work when using bash.

Are you using csh/tcsh?
what about the 'glob/noglob' option?

what happens if you do:
echo *

do you just get a '*' or do you get the filenames in the current directory?

try this out:
bash
echo *
exit
bash -f
echo *
exit

in the first case, the result is 'Desktop' (only non-dot file),
in the 2nd case, the result is '*'

Last edited by perbh (2008-10-15 15:53:22)

Offline

Board footer

Powered by FluxBB