Mostafa Nazari wrote:
bug_part (echo TEST)
The (echo TEST) construct creates a pipe. You can view it just
printing the value that gets passed to the program:
$ echo (echo TEST)
/dev/fd/63
Now, a problem of that pipe is that the contents can only be read once.
Indeed, what would the second read
On Sun, Aug 23, 2015 at 5:42 AM, Mostafa Nazari m...@mnazari.ir wrote:
I know why this is a bug, but this is! a bug. please inform me if there is
any working around this.
#!/bin/bash
function bug_part() {
cat $1 sample.fisrt
cat $1 sample.second
}
bug_part *(echo
I know why this is a bug, but this is! a bug. please inform me if there is
any working around this.
#!/bin/bash
function bug_part() {
cat $1 sample.fisrt
cat $1 sample.second
}
bug_part *(echo TEST)*
[ $(cat sample.fisrt) != $(cat sample.second) ] echo THIS IS A BUG
12 exit