Quantcast
Channel: Question about interactive detection in bash - Unix & Linux Stack Exchange
Browsing latest articles
Browse All 2 View Live

Answer by chaos for Question about interactive detection in bash

The <(...) statement in bash is process substitution. The process in <(...) is run with its input or output connected to a FIFO or some file in /dev/fd. See it with: echo <(echo foo) It prints...

View Article



Question about interactive detection in bash

I have a question about interactive detection in bash. The following script prints if it is called in interactive mode or not. $ cat int.sh #!/bin/bash if [ -t 0 ]; then echo "interactive" else echo...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images