cd $x; rmdir $x; mkdir $x; ...

2009-09-11 Thread jidanni
Yes, this all is probably expected, but I'll post it here anyway, just
in case.

$ mkdir /tmp/n
$ cd /tmp/n
$ rmdir /tmp/n
$ mkdir /tmp/n
$ pwd
/tmp/n
$ touch k
touch: cannot touch `k': No such file or directory
$ touch /tmp/n/k
$ dash
sh: getcwd() failed: No such file or directory
$ pwd

$ exit
$ bash
shell-init: error retrieving current directory: getcwd: cannot access parent 
directories: No such file or directory
shell-init: error retrieving current directory: getcwd: cannot access parent 
directories: No such file or directory
$ pwd
pwd: error retrieving current directory: getcwd: cannot access parent 
directories: No such file or directory
$ exit
$ ls .
$ ls -l
total 0
$ ls -la
total 0
$ ls -la .
total 0
$ ls -la $PWD
total 0
drwxr-xr-x 2 jidanni jidanni  60 2009-09-12 01:55 .
drwxrwxrwt 9 rootroot440 2009-09-12 01:55 ..
-rw-r--r-- 1 jidanni jidanni   0 2009-09-12 01:55 k




Re: cd $x; rmdir $x; mkdir $x; ...

2009-09-11 Thread Mike Frysinger
On Friday 11 September 2009 14:04:05 jida...@jidanni.org wrote:
> Yes, this all is probably expected, but I'll post it here anyway, just
> in case.

all correct/expected behavior, and not really specific/bug in any of the 
programs you executed.  once *nix has a descriptor for a path, it doesnt keep 
looking it up.  you removed the path associated with your cwd so you're going 
to get errors until you force a re-lookup.  i.e. `cd .`
-mike


signature.asc
Description: This is a digitally signed message part.


bash documentation error

2009-09-11 Thread Ken Nellis

   Dear Bug-Bash:


   I found an error in your online bash documentation at

   [1]http://www.gnu.org/software/bash/manual/bashref.html

   In the [2]Conditional = Constructions (§3.2.4.2) section under the
   “case” command , the second paragraph start= s out:


   Each clau= se must be terminated with ‘;;’, ‘,&   ’, or ‘;;&�= ��.


   That  middle option, ‘,&’, should be: ‘;&[DEL:
   ’ :DEL] , i.e., a sem= icolon rather than a comma.


   Sincerely,
   Kenneth Nel= lis

References

   1. 3D"http://www.gn=/
   2. 3D"http://www.gnu.org/software/bash/manual/bash