Skip to content

Cannot use options for echo command #29

@aibou

Description

@aibou

Hi there,

When I used echo command in alias function, -n option is not used by echo as follows:

foo =
  !f() {
    echo -n 1
  }; f
$ aws foo
-n 1

But, ls command can use options successfully:

bar =
  !f() {
    ls
  }; f

baz =
  !f() {
    ls -l
  }; f
$ aws bar
file1	file2

$ aws baz
total 0
-rw-r--r--  1 aibou  staff  0  3 16 15:20 file1
-rw-r--r--  1 aibou  staff  0  3 16 15:20 file2

It seems a bug but I can't understand why ONLY echo behave it...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions