We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Problem description
When I create a new session in Termux, the bash prompt ($PS1) doesn't expand \W as expected.
$PS1
\W
Steps to reproduce
Setup:
# ~/.bashrc export PS1='\W$ '
Initial session:
~$ pwd && echo $PWD /data/data/com.termux/files/home /data/data/com.termux/files/home ~$ mkdir -p test/dir ~$ cd test/dir dir$ pwd && echo $PWD /data/data/com.termux/files/home/test/dir /data/data/com.termux/files/home/test/dir dir$
In a new session:
$ pwd && echo $PWD /data/data/com.termux/files/home/test/dir /data/data/com.termux/files/home/test/dir/ $
Expected behavior
Opening a new session shouldn't mangle the prompt. It seems the \W escape character isn't expecting a trailing slash in $PWD.
$PWD
Additional information
termux-info:
termux-info
Packages CPU architecture: aarch64 Subscribed repositories: # sources.list deb https://termux.org/packages/ stable main # game-repo (sources.list.d/game.list) deb https://dl.bintray.com/grimler/game-packages-24 games stable # sources.list.d/pointless.list deb https://its-pointless.github.io/files/24 termux extras # science-repo (sources.list.d/science.list) deb https://dl.bintray.com/grimler/science-packages-24 science stable # unstable-repo (sources.list.d/unstable.list) deb https://dl.bintray.com/xeffyr/unstable-packages unstable main Updatable packages: All packages up to date Android version: 9 Kernel build information: Linux localhost 4.14.83-perf+ #1 SMP PREEMPT Thu Sep 26 15:22:17 KST 2019 aarch64 Android Device manufacturer: LGE Device model: LM-G820
I can provide logcat logs if you need them.
The text was updated successfully, but these errors were encountered:
Pretty sure it stems from e28be01.
Sorry, something went wrong.
Avoid trailing slash in CWD (fixes #1413)
ecb08e3
566d656
@mklein994 Thanks a lot! Will be fixed by 566d656 in version 0.88, to be released shortly.
Avoid trailing slash in CWD (fixes termux#1413)
156ff8d
964da22
No branches or pull requests
Problem description
When I create a new session in Termux, the bash prompt (
$PS1
) doesn't expand\W
as expected.Steps to reproduce
Setup:
Initial session:
In a new session:
Expected behavior
Opening a new session shouldn't mangle the prompt. It seems the
\W
escape character isn't expecting a trailing slash in$PWD
.Additional information
termux-info
:I can provide logcat logs if you need them.
The text was updated successfully, but these errors were encountered: