Skip to content

BaoCode Bash 0.3.0: path advice in the prompt, ps1 cases - #1040

Merged
leookun merged 1 commit into
mainfrom
bash-exe-paths
Nov 16, 2026
Merged

leookun merged 1 commit into
mainfrom
bash-exe-paths

Conversation

@leookun

@leookun leookun commented Nov 16, 2026

Copy link
Copy Markdown
Collaborator

For bash-exe 0.3.0 (baocode-dev/bash-exe#5), which prints Windows paths as C:/x.

  • Shell.baoBashNote: paths print as C:/x; write them that way (bash and Windows programs both read it); C:\x and /c/x name the same file; cygpath converts; PATH="$PATH:/c/tools" adds a folder.
  • tool/test_bash_exe.ps1: C:/x output, cygpath, a :-appended PATH entry, $PPID, exec bash and exec env with a #!/usr/bin/env bash script.

The ps1 passes (61 cases) against a 0.3.0 build on a Windows VM; this PR's CI builds bash-exe main.

🤖 Generated with BaoCode

The bash note now says paths print as C:/x and to write them that way
(bash and Windows programs both read it), that C:\x and /c/x name the
same file, that cygpath converts and PATH="$PATH:/c/tools" adds a folder.
test_bash_exe.ps1 checks C:/x output, cygpath, a ":"-appended PATH entry,
$PPID, and exec bash / exec env with a #!/usr/bin/env bash script.

Co-Authored-By: BaoCode <noreply@baocode.dev>
@leookun
leookun merged commit f530591 into main Nov 16, 2026
6 checks passed
@leookun
leookun deleted the bash-exe-paths branch November 16, 2026 14:43
leolee-code pushed a commit to leolee-code/baocode that referenced this pull request Nov 23, 2026
baocode-dev#1040)

The bash note now says paths print as C:/x and to write them that way
(bash and Windows programs both read it), that C:\x and /c/x name the
same file, that cygpath converts and PATH="$PATH:/c/tools" adds a folder.

Here tool/test_bash_exe.ps1 is left out: this fork removed it in
40b5705. The BaoCode Bash it carries (third_party/bash-exe) is 0.3.0
already, so the note now says what that build does.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 9fd3c71)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants