edc / bass

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

Printf command fails in bass if feeded with "--" #63

Closed rsalmei closed 5 years ago

rsalmei commented 5 years ago

Hello, I have several scripts that are failing inside bass with the same pattern:

printf: Unknown option “-------------------- >> begin captured logging << --------------------”
- (line 565): 
printf "-------------------- >> begin captured logging << --------------------";printf '
^
from sourcing file -
    called on line 15 of file ~/.config/fish/functions/bass.fish

in function “bass”
    called on line 1 of file -
    with parameter list “commands.sh test core”

in function “inner”
    called on standard input
    with parameter list “test core”

       printfprintf - display text according to a format string
        -

   Synopsis
       printf format [argument...]

printf: Type “help printf” for related documentation

The above output was running nosetests.

I'm using fish version 2.7.1 with fisher and bass updated.

Thank you.

edc commented 5 years ago

@rsalmei sorry about the late response. Can you provide a way for me to reproduce it?