working directory is always $HOME when using -x or -e
Bug #1781824 reported by
Philippe
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Sakura |
Expired
|
Medium
|
Unassigned |
Bug Description
I upgraded sakura from 3.4 to 3.6, and now the working directory when starting sakura with -x or -e is always $HOME, even if you specify -d.
Steps to reproduce:
- cd /usr/bin
- sakura -e 'sh -c "pwd && sleep 1"' -d $(pwd)
Obtained:
My home directory is printed
Expected:
"/usr/bin"
Also, I would expect it to be /usr/bin even if I hadn't specified -d, as it works without -e or -x
Changed in sakura: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
Changed in sakura: | |
status: | Confirmed → Incomplete |
To post a comment you must log in.
I have the same problem - except it's even worse for me - it changes sporadically between the intended path and $HOME. Tested with the following commandline:
# reproduce problem
cd /tmp
for _ in `seq 100`; do sakura -e 'bash -c "pwd >> /tmp/paaaath"'; done
# Show stats
sort /tmp/paaaath | uniq -c
53 /home/dv
49 /tmp
My version is also 3.6.0, via the official Archlinux package