On 02/27/2013 09:59 PM, Linda Walsh wrote:
if I type in: while read fn;do ls -l "$fn"; done < <('ls' -1)
into bash, I get a listing of files.
But if I put that line in a file. It doesn't work.
Why? Because of a suse-only patch to disable running such scripts under the user's shell, and only run them under /bin/sh.
The above doesn't work under /bin/sh.
So why the special suse-only patch to disable bash on such scripts?
Why do you think this is SUSE only. Every distro has a default shell, which is what you get when you do not specify the shell to use. Do you know about the shebang? Try the following in a file, and see what you get: #!/bin/bash while read fn ; do ls -l "$fn"; done < <('ls' -1) Larry -- To unsubscribe, e-mail: opensuse-factory+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-factory+owner@opensuse.org