Package: bash
Version: 4.4.18-3.1
Severity: normal
Tags: upstream

It should be summarized in the following excerpt:
0% bash
[fc@fulvio ~]$ echo $PATH
.:bin:/home/fc/bin:/home/fc/.local/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/sbin:/usr/sbin
[fc@fulvio ~]$ cd /
[fc@fulvio /]$ ls
backup  bin  boot  dev  etc  home  initrd.img  initrd.img.old  lib  lib32  
lib64  lost+found  media  mnt  opt  proc  root  run  sbin  srv  store  sys  tmp 
 usr  var  vmlinuz  vmlinuz.old
[fc@fulvio /]$ cd /usr/bin/
[fc@fulvio bin]$ ls
bash: bin/ls: No such file or directory
[fc@fulvio bin]$ 

After visiting / and calling ls, bash thinks that ls is in bin/ls, the same 
with any other command.
This does not happen with . or any other relative directory, only with bin.

Fulvio

-- System Information:
Debian Release: buster/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 4.17.0-3-amd64 (SMP w/8 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bash depends on:
ii  base-files   10.1
ii  debianutils  4.8.6
ii  libc6        2.27-5
ii  libtinfo6    6.1+20180714-1

Versions of packages bash recommends:
ii  bash-completion  1:2.8-1

Versions of packages bash suggests:
pn  bash-doc  <none>

-- no debconf information

Reply via email to