This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: chmod -- Setting the sticky bit for/from the current directory
- From: Robert Pendell <shinji257 at gmail dot com>
- To: Cygwin eMail List <cygwin at cygwin dot com>
- Date: Mon, 28 Jun 2004 17:33:42 -0400
- Subject: Re: chmod -- Setting the sticky bit for/from the current directory
- References: <40E04F02.7090301@veritech.com> <40E08C73.2070304@veritech.com>
I think this is supposed to be a feature. I think /usr/bin and /bin
are mapped to the same location if memory serves me right.
On Mon, 28 Jun 2004 17:24:03 -0400, LDR <lee@veritech.com> wrote:
>
> | The following script excerpt explains the problem best:
>
> #!/usr/bin/bash
> ...
>
> # Set the sticky bit and get the ownership & permissions of the
> # current dir right
>
> # Convoluted logic, here of moving up a directory level to change
> # the sticky bit on what was the current directory was required by:
> # chmod +t .
> # works from the 'bash' command line but not from a 'bash' shell
> # script.
> # Same for:
> # chmod +t $PWD
>
> pwd1=$PWD
> cd ..
> chmod -v +t $pwd1
> cd $pwd1
>
> ...
>
> Note that the interactive shell as well as the script shell are 'bash',
> although the
> interactive shell is invoked as /bin/bash, rather than /usr/bin/bash.
>
> Is this a feature or a bug? Why? Is it Cygwin-specific, Bash-specific,
> or what?
>
> signed,
>
> intermmittentLee sTicky :-P
>
> |
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Problem reports: http://cygwin.com/problems.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
>
--
Robert Pendell
shinji257@gmail.com
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/