42shpimanmls / 42sh

Shell project at 42
3 stars 0 forks source link

command_substitution(...) ignores quotes #136

Closed lsimonne closed 7 years ago

lsimonne commented 7 years ago
bash-3.2$ "`ls`"
bash: 42sh
42sh.dSYM
Makefile
README.md
a.out
auteur
includes
libft
objs
set_histfile.sh
srcs
test.c
tests
tools: command not found

double quotes only impact field splitting in this case

bash-3.2$ '`ls`'
bash: `ls`: command not found
bash-3.2$ \`ls\`
bash: `ls`: command not found
n0izn0iz commented 7 years ago

c'est closed ça nan ? @lsimonne