[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Valentin Bajrami |
Subject: |
|
Date: |
Wed, 12 Dec 2018 17:36:26 +0100 |
While playing around a bit with dotglob and nullglob the following testcase
seem to fail when cd'ing to a non existing directory. The shell seems to
hang there and sending a SIGINT isn't having much effect.
f3d0r4:~$ pwd
/home/valentin.local
f3d0r4:~$ shopt -s nullglob dotglob
f3d0r4:~$ f=(*)
f3d0r4:~$ (( ${#f[*]} )) || printf '%s\n' "This dir is empty"
f3d0r4:~$ echo "$BASH_VERSION"
4.4.23(1)-release
f3d0r4:~$ cd ../Nonexistingdir
bash: cd: ../Nonexistingdir: No such file or directory
^C
^C
cd Desktop/
f3d0r4:~/Desktop$
--
Met vriendelijke groet,
Valentin Bajrami
- [no subject],
Valentin Bajrami <=
- Re: your mail, Greg Wooledge, 2018/12/12
- Re:, Chet Ramey, 2018/12/12
- Re:, Valentin Bajrami, 2018/12/12
- Re:, Valentin Bajrami, 2018/12/12