Ticket #821 (closed バグ指摘: 修正済)

Opened 11 years ago

Last modified 10 years ago

setup.sh Linux で不具合

Reported by: Seasoft Owned by: Seasoft
Priority: Milestone: EC-CUBE2.11.0
Component: その他 Version: 2.5-dev
Keywords: Cc:
修正済み:

Description (last modified by Seasoft) (diff)

$ sh setup.sh
remove obsolete files...
find: invalid predicate `-delete'
find: invalid predicate `-delete'
set permissions...
finished.
$ find --version
GNU find version 4.1.20

GNU find では、バージョンに依存か?

Change History

comment:1 follow-up: ↓ 2 Changed 11 years ago by nanasess

下記の環境では, -delete が使用可能のようです.

$ uname -a
Linux hostname 2.6.18-128.el5 #1 SMP Wed Jan 21 10:44:23 EST 2009 i686 i686 i386 GNU/Linux

$ find --version
GNU find version 4.2.27
Features enabled: D_TYPE O_NOFOLLOW(enabled) LEAF_OPTIMISATION SELINUX 

下記のように xargs にパイプすれば問題ありませんでしょうか?

  • setup.sh

    === modified file 'setup.sh'
     
    1212rm -rf $WRK_DIR/html/test 
    1313rm -rf $WRK_DIR/data/downloads/module/* 
    1414rm -rf $WRK_DIR/data/downloads/module2/* 
    15 find $WRK_DIR -name "dummy" -delete 
    16 find $WRK_DIR -name "info.php" -delete 
     15find $WRK_DIR -name "dummy" | xargs rm -rf 
     16find $WRK_DIR -name "info.php" | xargs rm -rf 
    1717find $WRK_DIR -name ".svn" -type d -print0 | xargs -0 rm -rf 
    1818# find $WRK_DIR -iname "*.bak" -delete 
    1919 

comment:2 in reply to: ↑ 1 Changed 10 years ago by Seasoft

  • Description modified (diff)

nanasess への返信

下記の環境では, -delete が使用可能のようです.

たしかに、うちのテスト環境(FC9)でも大丈夫でした。発現環境の情報を説明に書き足します。

下記のように xargs にパイプすれば問題ありませんでしょうか?

動作は未確認ですが、xargs での対応は良さげな気がしますね。

comment:3 follow-up: ↓ 6 Changed 10 years ago by Seasoft

そもそも「info.php」って何者ですかね? ちょっとリスキーな処理のような・・・

comment:4 Changed 10 years ago by Seasoft

  • Owner changed from somebody to Seasoft
  • Status changed from new to assigned

comment:5 Changed 10 years ago by Seasoft

  • Milestone changed from EC-CUBE2.5.0beta to EC-CUBE2.5.0

comment:6 in reply to: ↑ 3 Changed 10 years ago by Seasoft

Seasoft への返信

そもそも「info.php」って何者ですかね? ちょっとリスキーな処理のような・・・

これのようです。
http://svn.ec-cube.net/open_trac/browser/branches/comu-utf8/html/info.php?rev=15104

別チケット(#628 r20000)で途対応済み。本チケットでは扱わない。

comment:7 Changed 10 years ago by Seasoft

  • Status changed from assigned to closed
  • Resolution set to 修正済
Note: See TracTickets for help on using tickets.