From mboxrd@z Thu Jan 1 00:00:00 1970 MIME-Version: 1.0 Date: Fri, 23 Oct 2009 06:43:49 -0400 Message-ID: From: Dimitry Golubovsky To: 9fans@9fans.net Content-Type: text/plain; charset=UTF-8 Subject: [9fans] Two suggestions for ape (was: egrep for Plan9) Topicbox-Message-UUID: 8e243440-ead5-11e9-9d60-3106f5b1d025 Great, thanks Russ. I have two suggestions for ape minor additions arising from my recent attempts to run configure scripts on Plan9 1. Add this script (suggested by Russ) as /rc/bin/ape/egrep #!/bin/rc if(~ $1 -E) shift exec grep $* 2. Make ls accept -i option (if inode numbers do not exists in Plan9 then it could print some numeric hash of file path, whatever) These things are needed by autoconf. For the former, the script above worked fine as egrep. For the latter, autoconf supplies code using "ls -di" when checking the current directory. I had to redefine the corresponding function locally to get around this. Looks like these things are hardwired in the autoconf macro library. Thanks. -- Dimitry Golubovsky Anywhere on the Web