edc / bass

Make Bash utilities usable in Fish shell
MIT License
2.2k stars 70 forks source link

bass command triggers rm to remove a temp file #76

Closed ricardomatias closed 4 years ago

ricardomatias commented 5 years ago

OS: Mac OS X 10.14.6 Fish: 3.0.2

Every time I use bass I get a prompt from rm asking if I want to remove a temporary file. (as the example below) This might be related to the pull requested merged yesterday, since the timing fits.

Usage: bass [-d] <bash-command>
rm: remove regular file '/var/folders/s4/ffqt6x516015rf37_gl41sqm0000gn/T/tmp.S6J9IeznGP'?
edc commented 4 years ago

I am not able to reproduce it. Could you try running it with -d and see if it's helpful? You may also take a look at the content of temp file and see it's indeed generated by bass.

edc commented 4 years ago

I think it's because your rm is an alias to rm -i. Let me push a potential fix.

edc commented 4 years ago

Done. Please try the fix.

ricardomatias commented 4 years ago

Works, thanks!