devdraw: plumb drag-n-dropped files
Change-Id: I7585870aee57c7482ebdd19c117be7982123ce79 Reviewed-on: https://plan9port-review.googlesource.com/1130 Reviewed-by: Russ Cox <rsc@google.com>
This commit is contained in:
committed by
Russ Cox
parent
25822e8da3
commit
d52bdd3356
@@ -10,14 +10,5 @@ IFS=$'\n'
|
||||
|
||||
for file in $($bin/macargv)
|
||||
do
|
||||
# Blanks are problematic in filenames: just plumb
|
||||
# the file's content.
|
||||
if echo "$file" | grep -q " "
|
||||
then
|
||||
base=$(basename "$file" | sed 's/ /_/g')
|
||||
attr="action=showdata filename=/BadName/$base"
|
||||
cat $file | "$bin/plumb" -i -d edit -a "$attr"
|
||||
else
|
||||
"$bin/plumb" -d edit "$file"
|
||||
fi
|
||||
$bin/macedit "$file"
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user