bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

read -e and filename completion


From: Bernhard Bablok
Subject: read -e and filename completion
Date: Sun, 7 Oct 2001 13:23:23 +0200

Configuration Information [Automatically generated, do not change]:
Machine: i386
OS: linux
Compiler: gcc -I/usr/src/packages/BUILD/bash-2.05
Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='i386' 
-DCONF_OSTYPE='linux' -DCONF_MACHTYPE='i$uname output: Linux sirius 2.4.4 #2 
Son Jul 29 17:13:33 CEST 2001 i686 unknown
Machine Type: i386-suse-linux
 
Bash Version: 2.05
Patch Level: 0
Release Status: release
 
Description:

"read -e" behaves like normal bash filename completion, i.e. it will only 
complete directories and executable files as first item. This seems 
inappropriate to me.
 
Repeat-By:

The following script prompts the user for the name of a configuration file. 
Unless that file is executable, filename completion can't be used.

=== cut ===
#!/bin/bash

echo "Enter configuration file name:"
read -e cfg_file
echo "cfg_file=$cfg_file"
=== cut ===

Bernhard
-- 
Bernhard Bablok
address@hidden
http://www.bablokb.de




reply via email to

[Prev in Thread] Current Thread [Next in Thread]