mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-08-11 12:40:42 +02:00
commit bash-20200319 snapshot
This commit is contained in:
+10
-1
@@ -11,7 +11,13 @@
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
trap "rm 'a?' aa" EXIT
|
||||
: ${TMPDIR:=/var/tmp}
|
||||
|
||||
FN=$TMPDIR/bash-glob.$$
|
||||
mkdir $FN || { echo "glob4.sub: cannot mkdir $FN" >&2 ; exit 1; }
|
||||
builtin cd $FN || { echo "glob4.sub: cannot change directory to $FN" >&2 ; exit 1; }
|
||||
rm -f *
|
||||
|
||||
touch 'a?' aa
|
||||
|
||||
set -- a \?; IFS=\\; var=$*;
|
||||
@@ -30,3 +36,6 @@ printf "%s\n" ${var}
|
||||
PRE='\/'
|
||||
printf '<%s>\n' 'define'${PRE}'\
|
||||
/'
|
||||
|
||||
builtin cd $OLDPWD
|
||||
rm -rf $FN
|
||||
|
||||
Reference in New Issue
Block a user