News for hackers. Stuff that matters.
Re:ls | grep “echo ${data}” – Why/how does this work? by tzahola on Tuesday May 08, 2018 @07:02PM (#17026110)
Hint: notice that “testfile1” is missing from grep’s output.
Re:ls | grep “echo ${data}” – Why/how does this work? by graylights on Tuesday May 08, 2018 @07:17PM (#17026206)
Another hint: set -x This will show you the expanded versions of your command.
Re:ls | grep “echo ${data}” – Why/how does this work? by indigodaddy on Tuesday May 08, 2018 @08:11PM (#17026464)
Ok so just | $data

or

| "$data"

.. would/should have worked as well (and should have caught everything?) ?

Re:ls | grep “echo ${data}” – Why/how does this work? by indigodaddy on Tuesday May 08, 2018 @07:06PM (#17026139)
Did not notice that testfile1 was missing, interesting
Re:ls | grep “echo ${data}” – Why/how does this work? by tzahola on Tuesday May 08, 2018 @07:09PM (#17026161)
Hint2: create a file called “echo testfile1” and try again.