Output redirection does not work in scripts #146

Closed
opened 2020-12-07 12:05:29 +01:00 by FWDekker · 0 comments
Owner

The following script should create a file file.txt, but that doesn't work.

#!/bin/josh
echo contents > file.txt

Reproduce this using

echo -e "#!/bin/josh\necho contents > scripts.jsh\n" > script.jsh
./script.jsh
The following script should create a file `file.txt`, but that doesn't work. ``` #!/bin/josh echo contents > file.txt ``` Reproduce this using ``` echo -e "#!/bin/josh\necho contents > scripts.jsh\n" > script.jsh ./script.jsh ```
FWDekker added the
bug
label 2020-12-07 12:05:29 +01:00
FWDekker self-assigned this 2020-12-07 12:05:29 +01:00
Sign in to join this conversation.
No description provided.