|
From: | Dan Douglas |
Subject: | Tilde expansion during command search |
Date: | Wed, 23 Jul 2014 07:22:33 -0500 |
User-agent: | KMail/4.13.3 (Linux/3.16.0-rc5; KDE/4.13.3; x86_64; ; ) |
Hi, from this discussion: https://github.com/koalaman/shellcheck/issues/195#issuecomment-49678200 I can't find any reference that says substituting a literal tilde in PATH should occur during command search. $ ( cd ~ mkdir tmpdir echo $'#!/bin/sh\necho "Hello from ${BASH_SOURCE}!"' >~/tmpdir/testscript chmod u+x ~/tmpdir/testscript PATH=\~/tmpdir typeset -p PATH testscript ) declare -x PATH="~/tmpdir" Hello from /home/devtest/tmpdir/testscript! $ echo "$BASH_VERSION" 4.3.18(1)-release -- Dan Douglas
[Prev in Thread] | Current Thread | [Next in Thread] |