diff options
| author | Marc André Tanner <mat@brain-dump.org> | 2016-04-15 16:37:27 +0200 |
|---|---|---|
| committer | Marc André Tanner <mat@brain-dump.org> | 2016-04-15 16:37:27 +0200 |
| commit | 69c43ac9c75c3b3b07845942e9bcf24f78217239 (patch) | |
| tree | 64bf8bdcb114d6df9781a3aa33280cc97a530fe5 /vis-open | |
| parent | f50465312dbb7e8fcb2409aa691d1aea7a43c466 (diff) | |
| download | vis-69c43ac9c75c3b3b07845942e9bcf24f78217239.tar.gz vis-69c43ac9c75c3b3b07845942e9bcf24f78217239.tar.xz | |
vis: improve handling of ~ and environment variables when opening files
Diffstat (limited to 'vis-open')
| -rwxr-xr-x | vis-open | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -35,7 +35,7 @@ DIR="" [ ! -z "$PATTERN" -a "$PATTERN" != "." -a -d "$PATTERN" ] && DIR="$PATTERN" while true; do - SEL=$({ echo ..; ls -1 $PATTERN; } | $VIS_MENU $VIS_MENU_ARGS) + SEL=$({ echo ..; ls -1 $PATTERN 2>/dev/null || echo $PATTERN; } | $VIS_MENU $VIS_MENU_ARGS) [ -z "$SEL" ] && exit 1 [ ! -z "$DIR" ] && SEL="$DIR/$SEL" if [ -d "$SEL" ]; then |
