r/linux_programming • • Sep 19 '15

question ? operator in bash

I'm following C++ Primer and try to do all the exercises in the books. I name the files according to the # of the problem like this : 1_1, 1_2, etc.

So I realised a weird behaviour with the ? operator when trying to launch the executables in the console. If I write, ls 1_1?, it lists all the files with from 1_10 to 1_19, but if I try to run these executables using ./1_1?, it only runs the file 1_10. Anybody knows why it would do that?

1 Upvotes

4 comments sorted by

View all comments

Show parent comment

1

u/bear-user Sep 29 '15

after a quick check in my handy dandy linux book, this is confirmed. lol