Re: odd error from bash exec binary on cmd line

2018-04-03 Thread L A Walsh
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

Re: odd error from bash exec binary on cmd line

2018-03-25 Thread Chet Ramey
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

odd error from bash exec binary on cmd line

2018-03-24 Thread L A Walsh
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