[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: error "sh: 1: exec: ...: File exists" with dash



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, Mar 03, 2016 at 10:18:55AM +0100, Vincent Lefevre wrote:
> I've got the following error in a script yesterday on a Debian 8
> machine:
> 
>   sh: 1: exec: /home/vlefevre/bin/mymaple: File exists
> 
> where sh is dash. The command that led to this error is equivalent to:

Just a cheap shot (I see you've dug up a couple of things which
might make my hunch obsolete). Do you have perhaps the noclobber
option set?

  # -C -- set noclobber
  tomas@rasputin:~$ dash -C
  $ touch moo
  $ echo blah > moo
  dash: 2: cannot create moo: File exists

regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlbYDL8ACgkQBcgs9XrR2karkACeOWfg7J9J/qa9JF43EvRcPdeI
tnMAni8M2qxoceb2GVeCwnhYrKzqFa7F
=GL93
-----END PGP SIGNATURE-----


Reply to: