3 83a5aba7 2011-11-28 rsc if [ -e ~/.bashrc ] ; then
6 afea5fc3 2010-10-28 rsc PLAN9=${PLAN9:-/usr/local/plan9}
8 7064acbd 2011-10-12 rsc bin=$PLAN9/bin
11 7064acbd 2011-10-12 rsc for file in $($bin/macargv)
13 7064acbd 2011-10-12 rsc # Blanks are problematic in filenames: just plumb
14 7064acbd 2011-10-12 rsc # the file's content.
15 7064acbd 2011-10-12 rsc if echo "$file" | grep -q " "
17 7064acbd 2011-10-12 rsc base=$(basename "$file" | sed 's/ /_/g')
18 7064acbd 2011-10-12 rsc attr="action=showdata filename=/BadName/$base"
19 7064acbd 2011-10-12 rsc cat $file | "$bin/plumb" -i -d edit -a "$attr"
21 7064acbd 2011-10-12 rsc "$bin/plumb" -d edit "$file"