Skip to main content
Post Closed as "Duplicate" by ilkkachu bash
edited tags; edited title
Link
ilkkachu
  • 148.2k
  • 16
  • 268
  • 441

why $@echo in shell script can't print -n option

edited title
Link
haolee
  • 103
  • 4

why $@ in shell script can't print -n option

Source Link
haolee
  • 103
  • 4

why $@ can't print -n option

The following script can only print -m but it can't print -n.

#!/bin/sh echo $@ 
$ sh test.sh -m -m $ sh test.sh -n $