Chet Ramey wrote:
On 3/24/18 3:31 PM, L A Walsh wrote:
bash sleep 1
I get:
/usr/bin/sleep: /usr/bin/sleep: cannot execute binary file
???
Isn't it bash that cannot execute the binary file because
it expected a script?
Think about what happens when you run a command like that. Bas
On 3/24/18 3:31 PM, L A Walsh wrote:
> bash sleep 1
>
> I get:
>
> /usr/bin/sleep: /usr/bin/sleep: cannot execute binary file
>
> ???
> Isn't it bash that cannot execute the binary file because
> it expected a script?
Think about what happens when you run a command like that. Bash sees
that it
Using bash-4.4.12...
If I use bash -c, I get a variety of correct messages:
bash -c xxx
bash: xxx: command not found
touch xx
Ishtar:law/bin> bash -c xx
bash: ./xx: Permission denied
or when it works, it just does:
bash -c "sleep 1"
(sleeps 1)
but if I leave off the '-c', like:
bash sl