[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Help-bash] How pass arguments to a command run by the -c option of bash
From: |
Peng Yu |
Subject: |
[Help-bash] How pass arguments to a command run by the -c option of bash? |
Date: |
Sun, 21 Jul 2013 11:01:45 -0500 |
Hi,
I'm trying to run a command by the -c option. But 'a' is not passed to
address@hidden Does anybody know what is correct way to pass the command
arguments to a command run by the -c option of bash?
~$ bash -c 'echo x $@' a b c
x b c
--
Regards,
Peng
- [Help-bash] How pass arguments to a command run by the -c option of bash?,
Peng Yu <=