Martijn Dekker <[email protected]> wrote: > > posh > > $ type alias > > alias is a shell builtin > > Yes: > > $ ./posh -c 'alias' > posh: alias: not found > $ ./posh -c 'type alias' > ./posh: type: not found > > You're on Solaris, right? posh doesn't have 'type' either so you must be > running your /usr/xpg4/bin/type external command which reports on your > ksh 'alias' command.
OK: PATH=/ /opt/schily/bin/posh -c 'type' /opt/schily/bin/posh: type: not found posh is soooo non-POSIX that even normal tests return incorrect results :-( > A good example of how providing builtins as external commands is NOT a > good idea if those commands are only relevant to the shell's internal > state, no matter what POSIX says. Well this is required by POSIX and as you see from my new test, it is possible to work with this definition is you at least know that you need to fight against something extremely non-POSIX. Jörg -- EMail:[email protected] (home) Jörg Schilling D-13353 Berlin [email protected] (work) Blog: http://schily.blogspot.com/ URL: http://cdrecord.org/private/ http://sf.net/projects/schilytools/files/'
