ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/gtkbfc/gtkbfc-helper
(Generate patch)

Comparing gtkbfc/gtkbfc-helper (file contents):
Revision 1.8 by root, Sat Aug 18 10:54:13 2007 UTC vs.
Revision 1.11 by root, Thu Oct 9 07:35:43 2008 UTC

1#!/bin/bash 1#!/bin/bash
2 2
3export PROMPT="$1" 3export PROMPT="$1"
4export XID="$2"
5export FILENAME="$3"
4 6
5exec 5>&1
6urxvt -geometry 120x16 -transient-for "$2" +sb -e bash -c ' 7exec urxvt -geometry 120x16 -transient-for "$2" +sb -e bash -c '
7 echo "gtk bash file chooser" 8 echo "gtk bash file chooser"
8 echo "cwd: $PWD" 9 echo "cwd: $PWD"
9 read -p "$PROMPT" -e 10 read -p "$PROMPT" -e -r
10 REPLY=$(eval echo "$REPLY") 11 REPLY=$(eval echo "$REPLY")
11 case "$REPLY" in 12 case "$REPLY" in
12 /* ) printf "%s" "$REPLY" >&5 ;; 13 /* ) printf "%s" "$REPLY" >&5 ;;
13 * ) printf "%s/%s" "$PWD" "$REPLY" >&5 ;; 14 * ) printf "%s/%s" "$PWD" "$REPLY" >&5 ;;
14 esac 15 esac
15' 16' 5>&1
16 17

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines