I had some bash scripts on Ubuntu 09.10 (mint version) that fail to work on Ubuntu 10.04.

The line that fails is the following:
# cat file_with_my-password.txt > sudo -S something
cat: invalid option -- 'S'
Try `cat --help' for more information.
In my case "something" mounts some filesystems (that fail to load from fstab - bios "fake" raid 10), but I get the same error for any sudo command.

It is the same script that used to work under 09.04 :-/

Any help highly appreciated!