WilDoane/GitDataCollection — comment on commit 9a9cb51558cca11807c74c284fe7117ff8a3105a
File: research-compiler-tcsh.sh line 7
By WilDoane:

Try

```shell
rm -rf stupidfile.txt < yes
```

Many UNIX implementations provide a stream of "y" characters to simulate keyboard input.

On 2012 Jan 06, at 10:22, Brian A. Danielak wrote:

> I couldn't get around this one. Consensus on tcsh seems to be that you can't redirect stderr to a variable. Otherwise I would have.
>
> We can talk about whether my solution is acceptable. Originally, I wanted to create and destroy this temporary file entirely inside of the loop. BUT, the glue shell prompts users for deletion confirmation, even when you type `rm -rf`.
>
> ```shell
>
> y:~: mkdir Dummy
> y:~: cd Dummy
> y:~/Dummy: touch stupidfile.txt
> y:~/Dummy: ll
> total 12
> drwxr-xr-x 2 briandk osl 2048 Jan 6 10:22 .
> drwxr-xr-x 11 briandk osl 4096 Jan 6 10:22 ..
> -rw-r--r-- 1 briandk osl 0 Jan 6 10:22 stupidfile.txt
> y:~/Dummy: rm -rf stupidfile.txt
> rm: remove stupidfile.txt (yes/no)? yes
> ```
>
> ---
> Reply to this email directly or view it on GitHub:
> https://github.com/WilDoane/GitDataCollection/commit/9a9cb51558cca11807c74c284fe7117ff8a3105a#commitcomment-843946