Bonjour,

J'ai l'habitude de placer mes scripts sur ~/bin et de l'ajouter PATH

Il me semble même que sur Fedora 22 (venant de 19 ou moins), c'était déjà prévu.

Mais aujourd'hui : j'ai mes scripts exécutable dans ~/bin mais ils ne sont pas pris en compte.

Dans mon .bashrc_profile :
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH
J'ai tenté aussi dans .profile
PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH
Mais aucun ne fonctionne .

QU'est ce que j'ai oublié ?

J'ai aussi forcé bash en tant que shell mais ca marche pas ....

Quelle est la bonne façon de faire ?

Je peux, bien sur ajouter
if [ -f ~/.profile ]; then
	. ~/.profile
fi
dans /etc/profile, mais je suis surpris que cela ne soit pas déjà prévu.

Denis
Aucun problème chez moi.

> Dans mon .bashrc_profile :

C'est une typo ? c'est .bash_profile ou .bashrc
As-tu reloadé le .bash_profile après avoir fait les modifications?
source ~/.bash_profile
Cela provient d'une installation neuve de Fedora 23, avec un home clean (le home de base)

Je n'ai touché à aucun des ~/.bash*

@remi
Oui , c'est bien .bash_profile , c'est une typo
$ ls -la .bash*
-rw-------. 1 shnoulle shnoulle 9549 23 janv. 18:39 .bash_history
-rw-r--r--. 1 shnoulle shnoulle   18 18 août  15:37 .bash_logout
-rw-r--r--. 1 shnoulle shnoulle  193 15 janv. 19:03 .bash_profile
-rw-r--r--. 1 shnoulle shnoulle  231 18 août  15:37 .bashrc

@jvdp : après reboot , logiquement je n'ai pas à rechargé le profile . Et surtout je veux que cela soit chargé automatiquement.

Sinon, mes scripts sont bien executable
[shnoulle@beldaran ~]$ cat bin/test.sh 
#!/bin/bash
echo "OK"
[shnoulle@beldaran ~]$ ls -la bin/test.sh 
-rwxrwxr-x. 1 shnoulle shnoulle 22 24 janv. 19:21 bin/test.sh
[shnoulle@beldaran ~]$ test.sh
bash: test.sh: commande inconnue...
Et:
[shnoulle@beldaran ~]$ cat .bash_profile 
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
	. ~/.bashrc
fi

# User specific environment and startup programs

PATH=$PATH:$HOME/.local/bin:$HOME/bin

export PATH
[shnoulle@beldaran ~]$ cat .bashrc 
# .bashrc

# Source global definitions
if [ -f /etc/bashrc ]; then
	. /etc/bashrc
fi

# Uncomment the following line if you don't like systemctl's auto-paging feature:
# export SYSTEMD_PAGER=

# User specific aliases and functions
[shnoulle@beldaran ~]$ cat .bash_logout 
# ~/.bash_logout
Sur la version 22, il me semble qu'il y avait l'instruction
if [ -f ~/.bash_profile ]; then
	. ~/.bash_profile
fi
dans le /etc/bashrc

Mais ici :
# cat /etc/bashrc 
# /etc/bashrc

# System wide functions and aliases
# Environment stuff goes in /etc/profile

# It's NOT a good idea to change this file unless you know what you
# are doing. It's much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.

# are we an interactive shell?
if [ "$PS1" ]; then
  if [ -z "$PROMPT_COMMAND" ]; then
    case $TERM in
    xterm*|vte*)
      if [ -e /etc/sysconfig/bash-prompt-xterm ]; then
          PROMPT_COMMAND=/etc/sysconfig/bash-prompt-xterm
      elif [ "${VTE_VERSION:-0}" -ge 3405 ]; then
          PROMPT_COMMAND="__vte_prompt_command"
      else
          PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
      fi
      ;;
    screen*)
      if [ -e /etc/sysconfig/bash-prompt-screen ]; then
          PROMPT_COMMAND=/etc/sysconfig/bash-prompt-screen
      else
          PROMPT_COMMAND='printf "\033k%s@%s:%s\033\\" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"'
      fi
      ;;
    *)
      [ -e /etc/sysconfig/bash-prompt-default ] && PROMPT_COMMAND=/etc/sysconfig/bash-prompt-default
      ;;
    esac
  fi
  # Turn on parallel history
  shopt -s histappend
  history -a
  # Turn on checkwinsize
  shopt -s checkwinsize
  [ "$PS1" = "\\s-\\v\\\$ " ] && PS1="[\u@\h \W]\\$ "
  # You might want to have e.g. tty in prompt (e.g. more virtual machines)
  # and console windows
  # If you want to do so, just add e.g.
  # if [ "$PS1" ]; then
  #   PS1="[\u@\h:\l \W]\\$ "
  # fi
  # to your custom modification shell script in /etc/profile.d/ directory
fi

if ! shopt -q login_shell ; then # We're not a login shell
    # Need to redefine pathmunge, it get's undefined at the end of /etc/profile
    pathmunge () {
        case ":${PATH}:" in
            *:"$1":*)
                ;;
            *)
                if [ "$2" = "after" ] ; then
                    PATH=$PATH:$1
                else
                    PATH=$1:$PATH
                fi
        esac
    }

    # By default, we want umask to get set. This sets it for non-login shell.
    # Current threshold for system reserved uid/gids is 200
    # You could check uidgid reservation validity in
    # /usr/share/doc/setup-*/uidgid file
    if [ $UID -gt 199 ] && [ "`id -gn`" = "`id -un`" ]; then
       umask 002
    else
       umask 022
    fi

    SHELL=/bin/bash
    # Only display echos from profile.d scripts if we are no login shell
    # and interactive - otherwise just process them to set envvars
    for i in /etc/profile.d/*.sh; do
        if [ -r "$i" ]; then
            if [ "$PS1" ]; then
                . "$i"
            else
                . "$i" >/dev/null
            fi
        fi
    done

    unset i
    unset -f pathmunge
fi
# vim:ts=4:sw=4

Est ce que l'un de vous peux regarder /etc/bashrc ou /etc/profile ?

Voir si il ne me manque pas un fichier dans /etc/profile.d/
[root@beldaran ~]# ls /etc/profile.d/
256term.csh         colorgrep.sh     colorxzgrep.sh         gnome-ssh-askpass.sh  lang.sh      modules.sh             qt-graphicssystem.sh  vim.sh
256term.sh          colorls.csh      colorzgrep.csh         kde.csh               less.csh     PackageKit.sh          qt.sh                 vte.sh
bash_completion.sh  colorls.sh       colorzgrep.sh          kde.sh                less.sh      qt.csh                 scl-init.sh           which2.csh
colorgrep.csh       colorxzgrep.csh  gnome-ssh-askpass.csh  lang.csh              modules.csh  qt-graphicssystem.csh  vim.csh               which2.sh
Merci
jette aussi un coup d'oeil dans /etc/profile
Tu as vérifié $HOME ET $PATH?
echo $HOME
echO $PATH
Ah !!!!

C'est uniquement en passant par gnome-terminal-nautilus ou nautilus-open-terminal.

J'ai désinstallé les 2 , réinstallé seulement gnome-terminal-nautilus:
[shnoulle@beldaran Documents]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin
(le $HOME est bon)

Mais en lanceant gnome-terminal : cela fonctionne bien :
[shnoulle@beldaran ~]$ echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/home/shnoulle/.local/bin:/home/shnoulle/bin:/home/shnoulle/.local/bin:/home/shnoulle/bin
Y a même doublon avec mon .profile)

Donc bug de gnome-terminal-nautilus .... il ne lit pas bash_profile

Denis
PS: https://bugzilla.redhat.com/show_bug.cgi?id=1301515
PS2 : même chose avec nautilus-open-terminal sur RHEL7 : https://bugzilla.redhat.com/show_bug.cgi?id=1093432