crosstool enhancement
Daniel Kegel
dank@kegel.com
Fri Feb 13 00:52:00 GMT 2004
Roman Duka wrote:
>>> # FIXME: test -h is not portable
>>>
>>> well I had the same problem, and I think this is a sure way to solve it:
>>>
>>> file -b /some_path/some_file | grep 'symbolic link' > /dev/null
>>> issymlink=$?
>
> ... I do a lot of shell scripting, i was writing some
> shell scripts for my initrd (Initial Ramdisk) which runs on busybox,
> busybox has "ash" shell built in, but i don't think it supports "test
> -h"
As it happens, cygwin uses ash as its default noninteractive shell,
so I certainly want to support ash.
I did a lot of work porting ltp to run under busybox's ash, so
I'm very sympathetic to these issues. Maybe I'll even test
using busybox ash as the shell, what the heck. It's a bit low
on the priorities, though.
- Dan
------
Want more information? See the CrossGCC FAQ, http://www.objsw.com/CrossGCC/
Want to unsubscribe? Send a note to crossgcc-unsubscribe@sources.redhat.com
More information about the crossgcc
mailing list