From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dave Subject: Re: [9fans] blanks in file names In-reply-to: <20020707051719.4D14119992@mail.cse.psu.edu> from <"arisawa@ar.aichi-u.ac.jp"@Jul> To: 9fans@cse.psu.edu Message-id: <200207070538.g675coR08830@dave2.dave.tj> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii Content-transfer-encoding: 7BIT Date: Sun, 7 Jul 2002 01:38:49 -0400 Topicbox-Message-UUID: c415d3fc-eaca-11e9-9e20-41e7f4b1d025 For userland programs, I'd probably vote to simply escape "interesting" characters that occur within filenames: 1) /bin/awk 2) \/bin\/awk 3) /bin\/awk 4) \/bin/awk We'd still have to annoy sed, awk, sort, etc. with this approach, but I don't think that's too bad. (If we really want, we can establish escape sequences that don't have these chars in them: e.g., \s for slash, \_ for space, etc.) Just my penny pair, Dave Cohen arisawa@ar.aichi-u.ac.jp wrote: > > If '/' is prohibitted as an element of file name and directory name, > then no change to open is required. > > Let's assume we accept '/' as an element of names, > then how do you express path in rc? > > /bin/awk may be : > 1. /bin/awk as it has been. > 2. a file named "/bin/awk" in current directory. > 3. a file named "bin/awk" in "/" > 4. a file named "awk" in "/bin" and "/bin" is in current directory. > > Kenji Arisawa >