This is the mail archive of the crossgcc@sources.redhat.com mailing list for the crossgcc project.

See the CrossGCC FAQ for lots more information.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: crosstool enhancement


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]