Skip to content

Commit

Permalink
Remove tabs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andy Chu committed Aug 26, 2017
1 parent 203a7ba commit f39be99
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/hard-coded-descriptors.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@ set -o errexit

interactive-stdin() {
local path=$0 # This script
while read line <&"$fd" ; do
while read line <&"$fd" ; do
echo "[$line]"
read -p "Continue? " ans
read -p "Continue? " ans
[[ "$ans" != yes ]] && exit 1
done {fd}< $path
done {fd}< $path
}

# https://www.reddit.com/r/oilshell/comments/6tch5v/avoid_directly_manipulating_file_descriptors_in/
Expand Down Expand Up @@ -116,5 +116,4 @@ flock-demo() {
wait
}


"$@"

0 comments on commit f39be99

Please sign in to comment.