Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #286637

Re: Sourcing of .profile

From tomas@tuxteam.de
Newsgroups linux.debian.user
Subject Re: Sourcing of .profile
Date 2026-05-14 12:30 +0200
Message-ID <MUBui-53qN-5@gated-at.bofh.it> (permalink)
References <MUwuB-50im-3@gated-at.bofh.it> <MUA5b-52oe-5@gated-at.bofh.it> <MUAHT-52Sc-5@gated-at.bofh.it> <MUBaV-53jH-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On Thu, May 14, 2026 at 12:06:10PM +0200, Brieuc Desoutter wrote:
> Solved!
> 
> So bash -lv was a good tip: it showed my file was sourced but I guarded
> some PATH updates within if:
> if [[ -d "$HOME/bin" ]] ; then
>    PATH="$HOME/bin:$PATH"
> fi
> 
> I do not know which program, bash or sh, or even if they are equivalent,
> but replace [[ by [ does the trick...

/bin/sh doesn't know [[. That's bash dialect (/bin/sh is in Debian usually
dash. But it also might be a bash pretending to be something else (when,
e.g., invoked under the name "sh").

An "ls -l /bin/sh" will lift that mystery for you :-)

Cheers
-- 
t

Back to linux.debian.user | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Sourcing of .profile Brieuc Desoutter <brieuc.desoutter@gmail.com> - 2026-05-14 07:10 +0200
  Re: Sourcing of .profile <tomas@tuxteam.de> - 2026-05-14 07:40 +0200
    Re: Sourcing of .profile Brieuc Desoutter <brieuc.desoutter@gmail.com> - 2026-05-14 08:40 +0200
      Re: Sourcing of .profile Anssi Saari <anssi.saari@debian-user.mail.kapsi.fi> - 2026-05-14 09:50 +0200
        Re: Sourcing of .profile <tomas@tuxteam.de> - 2026-05-14 09:50 +0200
      Re: Sourcing of .profile tomas@tuxteam.de - 2026-05-14 09:50 +0200
      Re: Sourcing of .profile Chris Green <cl@isbd.net> - 2026-05-14 10:50 +0200
  Re: Sourcing of .profile Nicolas George <george@nsup.org> - 2026-05-14 11:00 +0200
    Re: Sourcing of .profile <tomas@tuxteam.de> - 2026-05-14 11:40 +0200
      Re: Sourcing of .profile Brieuc Desoutter <brieuc.desoutter@gmail.com> - 2026-05-14 12:10 +0200
        Re: Sourcing of .profile tomas@tuxteam.de - 2026-05-14 12:30 +0200
    Re: Sourcing of .profile Greg Wooledge <greg@wooledge.org> - 2026-05-14 13:30 +0200

csiph-web