why results of these 3 find commands different, depending on directory in?
daniel@machine:~$ find /home/daniel/workspace/service/tests/smoke -name *.test (result: lists files named *.test expected) daniel@machine:~/workspace$ find /home/daniel/workspace/service/tests/smoke -name *.test find: paths must precede expression: service_real_all_tests_possible.test usage: find [-h] [-l] [-p] [-olevel] [-d help|tree|search|stat|rates|opt|exec] [path...] [expression] daniel@dtrezub:~/workspace/service$ find /home/daniel/workspace/service/tests/smoke -name *.test /home/daniel/workspace/service/tests/smoke/doc.test
you need quote name this
find /home/daniel/workspace/service/tests/smoke -name "*.test"
otherwise, shell doing glob expansion.
Comments
Post a Comment