문제

When I do...

ls$IFS-l

... I get the output I expect.

When I do...

curl$IFShttp://www.google.com

... I don't.

Am I misunderstanding internal field separators? How could I run a curl command without using any space characters?

도움이 되었습니까?

해결책

You need to put the variable within curly brackets, otherwise the shell looks for a variable called "IFShttp...":

curl${IFS}http://www.google.com
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top